Using the ticker on the home page
The ticker on the home page can be used to display one or more text items.
Each text item needs to start with a double-quote (") and end with double-quote followed by comma (",). Here are a couple simple examples:
"Good", "Dog",
Most of the time you'll want text items with HTML links inside them. Here are a couple examples:
"The <a href='https://indiana.edu/'>IU Home Page</a>", "The <a href='https://usss.iu.edu/'>USSS Home Page</a>",
Note that the URL needs to be wrapped in single quotes. The words for the link go between the end of the opening "a" element and the closing one.
(Accessibility note: It's considered bad practice to use "Click Here" as the words for the link. Instead, you should specify what the link is going to, as in the examples above.)
To load your items into the ticker in the WCMS, open the code chunk (which is the very first chunk on the home page) and navigate to the Details > Code section.
Within the Code section, you will see something like
<?php // require_once '/ip/uirrwww/inc/autoloader.php'; $tickerContents = [ "Fall 2018 Enrollment Feature Report Now Available: <a href='https://uirr.iu.edu/news-events/_news/Fall2018Enrollment.html'>Click Here</a>", "2018 Enrollment Projection Campus Summaries Now Available: <a href='https://uirr.iu.edu/facts-figures/enrollment/projections/index.html'>Click Here</a>", ]; $tm = new TickerMaker(); echo $tm->ticker($tickerContents); ?>
The ticker items are between the [ line and the ]; line. Replace those items with your new ones. We recommend putting each item on its own line to make it easier to edit within the WCMS.
If you have any questions ask Raja or Joe.
