[opencms-dev] How to Build A News Page ?

René Machel rene.machel at unitb.de
Wed Mar 15 15:17:29 CET 2006


Hi List,

after countless hours playing with "modulesdemo news" i cant quite 
figure out how this all works.

i know how to read all news with a collector and build a link to the 
detailed entry like this:

<a href="<cms:link><cms:contentshow element="${opencms.filename}" 
/>?uri=<%= cms.getRequestContext().getUri() %></cms:link>">read more...</a>


but i dont know how to connect my news entry to a template which 
displays the content, i always get an error like

"Property 'template-elements' undefined for file '/news/news_0001.html'"

how am i going to implement the detailed template on to the news ?
any suggestions are welcome

thx in advance

rené



More information about the opencms-dev mailing list