Page 1 of 1
[SOLVED] Read more .. giving odd result
Posted: Thu Jun 11, 2009 1:36 pm
by giles
I am running CMSMS 1.5.4 and have installed the news module on the front page. It shows the summary from the story and a link to read the rest. No problem.
However, when I click the "read more" link I get the summary followed by the body of the story
PLUS another summary which is clearly from the front page. I can't see anywhere in the documentation about setting a separate page template to read the news. This has to be simple but for the life of me I cannot find out what I am doing wrong.
I have used the code
Code: Select all
{cms_module module="news" category="Frontpage"}
within the content block on the main template to call the news in the first place.
Any input much appreciated.
the site is
www.cranbrooklacrosse.co.uk
Re: Read more .. giving odd result
Posted: Thu Jun 11, 2009 1:47 pm
by jmcgin51
from the News Help:
(optional) detailtemplate="" - Use a separate database template for displaying the article detail. This template must exist and be visible in the detail template tab of the News admin, though it does not need to be the default. If this parameter is not specified, then the current template marked as default will be used.
Re: Read more .. giving odd result
Posted: Thu Jun 11, 2009 2:04 pm
by giles
MMmmmm thanks for the input but that doesn't change anything.
I did create a new template "test" and called it with:
Code: Select all
{cms_module module="news" category="Frontpage" detailtemplate="test"}
I even made it the default template, but I still end up with the two summaries showing.
Re: Read more .. giving odd result
Posted: Thu Jun 11, 2009 2:21 pm
by RonnyK
I dont know if you refer to the detailpage= parameter... That will open a new page, holding the alias, as called with the detailpage= parameter and put the news details there instead of putting it in the content of the current page.
Ronny
Re: Read more .. giving odd result
Posted: Thu Jun 11, 2009 2:53 pm
by giles
RonnyK wrote:
I dont know if you refer to the detailpage= parameter... That will open a new page, holding the alias, as called with the detailpage= parameter and put the news details there instead of putting it in the content of the current page.
Ronny, Many thanks for your input. Can I just check that I have understood this.
In my main template (which is Clean Orange) I have the following code which sits in the middle column:
Code: Select all
<!-- Start Content -->
<div id="content">
<h1>{title}</h1>
{content}
{cms_module module="news" category="Frontpage" detailpage="test"}
</div>
<!-- End Content -->
Is that OK or have I fundamentally misunderstood the concept? Sorry to be such a pain.
Re: Read more .. giving odd result
Posted: Thu Jun 11, 2009 3:12 pm
by alby
detailpage is alias name of page that you want display your news article detail.
News article detail will be display in {content} tag of that page
Alby
[SOLVED] Read more .. giving odd result
Posted: Thu Jun 11, 2009 4:43 pm
by giles
alby wrote:
detailpage is alias name of page that you want display your news article detail.
News article detail will be display in {content} tag of that page
Ahhhh! OK I think I have got it. To display the whole news story successfully I need to :
1. set up another page similar to my original, but without the
Code: Select all
{cms_module module="news" category="Frontpage" detailpage="test"}
2. I then specify the
on the main page and it flicks to my new choice of page.
[EDIT]This does however leave me with a menu item I don't want to display. Is there any way of not having my news display page as a menu item?[/EDIT]
I found the hide from menu button in the pages layout...all sorted.
Thanks so much for your help with this I had made a fundamental misunderstanding in the beginning which I think I now understand.