Displaying an Oxitems feed within a site

Oxitems is Oxford’s institutional RSS / Newsfeed service and as such is available for free to every department and college. It really is quite brilliant.

It is NOT possible to position a WebLearn News tool in the RHS column of the front page so this effect must be achieved by other means.

If you want to display an Oxitems feed then you should use the Oxitems JavaScript library.

The following HTML code should ideally be placed in the <head> block of your page. If you are creating an HTML via the Resources tool then the code can be placed within the body of the page – it is good practice to paste this at the top of the page so it is easy to spot. Be sure to use the https protocol instead of http when specifying the location of the output_newsfeed function – this will prevent Internet Explorer issiung warnings about ‘secure and non-secure items’ appearing on the same page:

To insert this code onto you page you will have to switch to the Source view of the WYSIWYG HTML editor and paste the text onto the page.

Define the location of the JavaScript library:

<script type="text/javascript" 
 src="https://rss.oucs.ox.ac.uk/oxitems/output_newsfeed.js" 
  language="JavaScript"> 
</script> 

And then, at each point in the web page where a newsfeed is to be displayed, include lines like the following, (remembering of course to use the identifier of your feed instead of oucs/weblearn-news):

<script type="text/javascript"> 
   output_newsfeed("oucs/weblearn-news") 
</script> 
<noscript> 

   <p> 
      JavaScript is not enabled.  Either enable it or use this link: 
      <a href="http://rss.oucs.ox.ac.uk/oucs/weblearn-news/newsfeed.html">WebLearn news</a>. 
   </p> 
</noscript>

For more information on the above, visit the help page within the !Oxitems area of the OUCS website: https://rss.oucs.ox.ac.uk/oxonly/oxitems/output_newsfeed.php.

Posted in WebLearn | Tagged , | Leave a comment

Comments are closed.