Developer forum

Forum » Templates » news template for rss-feed

news template for rss-feed


Reply
hello

i seem to have a problem on www.riders.dk

i cant find out how to pick the right template as landing page from a rss feed.

i have made a special "news/article" template witch works fine when a article is viewed normaly thought a link on riders.dk.

>>http://riders.dk/Default.aspx?ID=71&M=News&PID=140&NewsID=1873

but when you get the link via rss it looks like this >>
http://riders.dk/Default.aspx?ID=1087&M=News&NewsID=1873

it is because the rss only takes the pagetemplate and not the pagetemplate and the speciel newstemplate.

any idea how to solve this one?

Replies

 
Reply
ralf@fonqi.dk wrote:
hello

i seem to have a problem on www.riders.dk

i cant find out how to pick the right template as landing page from a rss feed.

i have made a special "news/article" template witch works fine when a article is viewed normaly thought a link on riders.dk.

>>http://riders.dk/Default.aspx?ID=71&M=News&PID=140&NewsID=1873

but when you get the link via rss it looks like this >>
http://riders.dk/Default.aspx?ID=1087&M=News&NewsID=1873

it is because the rss only takes the pagetemplate and not the pagetemplate and the speciel newstemplate.

any idea how to solve this one?



Hi Ralf

It happens because of the page id in the two links.
Apparently the RSS module changes the pageid on link and shows the news element on page 1087 instead of 71.

If you report this in the helpdesk it would much appreciated.

// Sebastian
 
Reply
ok but how can i make a "hack" to make it work? is there a template tag that just gives me the id and then i could write the rest of it my self?
 
Reply
ralf@fonqi.dk wrote:
ok but how can i make a "hack" to make it work? is there a template tag that just gives me the id and then i could write the rest of it my self?



As far as I know there is no hack ...

// Sebastian

 

You must be logged in to post in the forum