Page 1 of 1

how NEWS modul work? [solved]

Posted: Mon Jan 22, 2007 4:39 pm
by pumuklee
hi
i read a lot of doc but im not sure how to create a news page

i have a news page with summaries
but when o click to view the details of the news it submits to the same page but nothings happens
i gave the detailpage alias

the page alias where i have this line have the folowing alias de_news

{cms_module module='news' detailpage="de_news"}

so what is the solution?
i must have other page with the news line for details or what?

thanks
what is the steps to put the news summary page and the details also?

Re: how to set NEWS details?

Posted: Mon Jan 22, 2007 5:54 pm
by pumuklee
hi
i wrote this topic because i really didnt understand how the news modul work
i read a lot of artcles but i didnt find the right answer

and after that a dig a lot of and i find the solution

solution:
you must create 2 templates in layout/templates (maybe it can be solved with one also)

template 1 - for the news with summeries
here comes something like this
{cms_module module='news' summarytemplate='t1.tpl' detailtemplate='d1.tpl'... detailpage="de_nachricht_detail"}

de_nachricht_detail - the alias of the detail page

t1.tpl and d1.tpl are saved in moduls/news/templates
and they are described teh view of the news part: display the author or not, date ...

template2 - for the news detail
it has a {content} row where comes the news detail

now we create the pages in content/pages
page 1 - news summary page with the template 1
page 2 - news detail page with the template 2 - hidden in the menu

and now works

thats all folks
i think this was poor documented

i hope it is useful for someone