What's New Column - RSS Feeds
RSS feeds on the home page:
- What's New Blog latest entry and the
- Spotlight on ... latest two entries
Upon consulting Maria Youngman and Robert Ferguson from IRT, I learned that Maria had developed some scripts from earlier ones by Robert to do news feeds on the Copyright site. Using these as a base, I was able to change and modify these to suit our needs.
- Two separate javascripts were needed.
- app.js
- Modifications: ** After much experimentation...**
- comment out the for statement and closing bracket
- change the variable entry from [ i ] to [ 0 ]
- Note: This enabled the display of only the latest blog entry.
- appSpot.js
- Modification: ** After much more experimentation and help from EVC IRT folks.**
- change the for statement to delete the indeterminate variable increment
- insert a direct counter in the for statement -- i < 2; i++
- Note: This enabled the display of the 2 latest blog entry.
- Links to the scripts had to be added to the bottom of the footer-LS.php includes file.
- Changes were needed for the whatsnewcol.txt includes file.
- Remove the feedroll scipts. Note: change related page in wiki.
- Replace with new javascripts.
- Organize and style to fit script output. Do a little cleanup for that column.
No comments:
Post a Comment