Editing RSS blocks in Ning
Playing around with Ning a little more my client wanted to have the RSS titles clickable. After posting on the developers network Fabricio pointed me in the right direction. I ended up writing my first PHP case statement (thanks to Paul Silver for some help with the PHP)
In the file /widgets/feed/templates/embed/embed.php I edited the code in xg_module_head to:
<?php
switch (xnhtmlentities($this->title)):
case "Features":
echo "<a href='http://www.artreview.com/profiles/blog/list?user=3817gr4a43ohe'>" . xnhtmlentities($this->title) . "</a>";
break;
case "News":
echo "<a href='http://www.artreview.com/artNewsAlert'>" . xnhtmlentities($this->title) . "</a>";
break;
default:
echo xnhtmlentities($this->title);
endswitch;
?>
</h2>
It appears to work well.





There are no comments for this entry.
[Add Comment]