Goal
I am trying to make a custom code at the end of my CMS ‘tool’ posts to allow users to copy a citation to the page.
The format needs to be:
Last name, Initials. (Year, Month Day). Article title. Blog Name. URL
The custom code block I am using
The problem
I want to change the ‘Publication date field’ format to match the required Year, Month Day format in the custom code block.
I want to split the field ‘contributor name’ currently in Fname Lname format into Lat name, Initials.
The question
Are there functions I can use on the CMS fields to attain the desired results?
Here is my site Read-Only: LINK
This question refers to the tool CMS template at the bottom of the rich text under the Cite this article (APA 7th ed.) header.
@chris_loggins, thanks for the welcome! I already use a date/time field in the CMS but am struggling to see how to get it to change the format in the custom code.
You will need to leverage custom code to handle the transformation of rendered content. JavaScript can be used to parse date formats as well as manipulate text strings. If development is not your thing you can always hire help.
Yes, I decided to give it a break until later since it was not integral to the site but rather an add-in.
I am going to refine it when I have a little more time.