Shape5 RSS template self feeding [solution]

You should use an RSS module in relevant position if you want to render a third party feed, or grab one from a different part of the same website in question.

To show a relevant page feed (auto-feed articles on your own site), do this:

Add this to the template RSS parameter settings:-

?format=feed&type=rss

or

?format=feed&type=atom

!important. Then edit index.php in the template, usually found at /root/templates/my_template_name/index.php

Find the following line (approx. line 176):

<div id="s5_rss" onclick="window.open('/<?php echo $s5_rss; ?>')"></div>

and change it to...

<div id="s5_rss" onclick='window.open("<?php echo $s5_rss; ?>")'></div>

The PHP variable comes as a multi char string, so you need double quotes. I just swapped them around, no harm, no foul, but you could also just change to double quotes and escape them.

Hit Ctrl + F5 to refresh a page with a menu setup as category blog type for best results.

See an example on www.toowoombarc.qld.gov.au for a large website example, feed icon at the top right, using the new_vision template on J2.5.x.

Hope this helps someone.

Share on Myspace

Latest News

Heartbleed security issue - OpenSSL

Do not rush to change all your passwords!

Let me qualify that statement. I have heard and seen many knee jerk reactions from "professionals" that state we should all rush out to change our banking and social media passwords. The first question we should be asking is, what, who, why. The second, do I need to make a change right away, if at all.

What systems are affected?

Simple. All systems that use the OpenSSL security certificate service.

Looking at Joomla 3.3

Create a HTML signature for Mac OS X Mavericks

This article describes the method for adding an email signature to your mail client under Mac OS X Mavericks (may be backward compatible with Lion too, untested).

Login Form