When a listing has an rss feed, there is no way to know unless you click to the details page. I would like to add a rss icon to the linkbit template that will show only if the listing has a feed available. I'm not sure what template code I should reference to do this. I'm assuming my code would be something like this: <IF {*unknown*}><img src="{IMAGESURL}/*my rss feed icon*" /></IF>
Just to extend this fuether - on the details.tpl page if I want to allow the user to subscribe to the feed (if available) from the details page, what further changes should I consider? - like user clicks on that feed icon and shoudl be able to subscribe to the feed from my directory...
Comments on Show RSS Icon if feed available
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
When a listing has an rss feed, there is no way to know unless you click to the details page. I would like to add a rss icon to the linkbit template that will show only if the listing has a feed available. I'm not sure what template code I should reference to do this. I'm assuming my code would be something like this: <IF {*unknown*}><img src="{IMAGESURL}/*my rss feed icon*" /></IF>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
<IF {LINKHASFEEDCONTENT}><img src="{IMAGESURL}/*my rss feed icon*" /></IF>
Forum Regular
Usergroup: Customer
Joined: Apr 03, 2007
Location: NY & PA
Total Topics: 94
Total Comments: 339
It's working just the way I wanted now. Thank you Paul.
Member
Usergroup: Member
Joined: Dec 22, 2010
Total Topics: 12
Total Comments: 23
Just to extend this fuether - on the details.tpl page if I want to allow the user to subscribe to the feed (if available) from the details page, what further changes should I consider? - like user clicks on that feed icon and shoudl be able to subscribe to the feed from my directory...
Thanks
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
A simple link to {LINKFEEDURL} would do that, right? May depend on their web browser.
Member
Usergroup: Member
Joined: Dec 22, 2010
Total Topics: 12
Total Comments: 23
Thanks Paul. I used the mentioned feed url variable and it is working.
just wondering - if it is possible to count the clicks to that feed url on each details listing page?