Page 1 of 1
detailpage attribute not taking effect in News module
Posted: Tue Feb 07, 2006 11:45 pm
by BK
Hi all,
I've tried using the detailpage="news" attribute where 'news' is the page's alias i want the content loaded in - however its not taking effect, the news content still loads in the page it was called in. Is this a bug anyone else has experienced?
I'm using today's latest beta version from svn (0.12-beta1 "Fiji").
Thanks,
BK
Re: detailpage attribute not taking effect in News module
Posted: Wed Feb 08, 2006 10:30 am
by LeisureLarry
For me the tag also works. As I hacked a similiar tag into the last stable, I can tell you how it should work. Lets say you have a startpage with a short summary of news (for example 3 entries) and news page which also shows a summary page first and after clicking some details. Now the behaviour of the old news module was to show the details always in the page you clicked the link. With the new tag the complete content of the chosen alias page would be dropped and the details will be shown instead. But you must use an existing alias page!
Re: detailpage attribute not taking effect in News module
Posted: Wed Feb 08, 2006 8:59 pm
by BK
Hi Patricia, Larry,
I actually hacked this same functionality into the previous version of CMSMS, by adding an extra paramater into the CreateLink function - so I'm pretty clued up on how it worked.
Here's the strange thing - I've now got it working by cutting out all the parameters, then pasting it back in 1 parameter at a time and testing.
{cms_module module="news" dateformat="%b %d, %Y" summarytemplate="news-summary.tpl" detailpage="news" detailtemplate="news-display.tpl"}
Works like a dream now. I havn't a clue why it didnt work yesterday, I havnt changed anything in my site or my code. Its really strange
Many thanks for your time all the same!
Re: detailpage attribute not taking effect in News module
Posted: Wed Feb 08, 2006 9:33 pm
by LeisureLarry
I don´t use the tpl´s, I´m editing the templates in the news template admin, therefore I don´t know. But great to hear it works now.
Re: detailpage attribute not taking effect in News module
Posted: Sat Mar 11, 2006 3:50 pm
by nils73
I encountered the same problem: I am unable to use pagealias - has no effect. It might be an issue on some accounts with mod_rewrite since I have problems using mod_rewrite on my install as well. I will dig deeper into this next week and hoepfully come up with a solution.
Or has anybody else a good hint?
Regards,
Nils
Re: detailpage attribute not taking effect in News module
Posted: Sun Apr 30, 2006 4:49 pm
by hansom
Sorry to follow up on this old topic, but did any of you get the detailpage parameter to work? I'm currently trying out the 0.13-beta1 which includes the 2.0.3 version of the News module, and it seems that this parameter doesn't work when mod_rewrite is used.
Re: detailpage attribute not taking effect in News module
Posted: Sun Apr 30, 2006 5:15 pm
by Ted
Yeah, there is a bug in 0.13.1 with it. I did get it fixed, and you can see the results on the cmsmadesimple.org site. beta2 should be out soon.
Re: detailpage attribute not taking effect in News module
Posted: Sun Apr 30, 2006 9:58 pm
by hansom
Sounds great! Another thing, is there any way of getting Markdown to render News content?