[SOLVED] Read more .. giving odd result

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
giles
New Member
New Member
Posts: 8
Joined: Thu Jun 11, 2009 12:43 pm

[SOLVED] Read more .. giving odd result

Post 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
Last edited by giles on Thu Jun 11, 2009 5:05 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Read more .. giving odd result

Post 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.
giles
New Member
New Member
Posts: 8
Joined: Thu Jun 11, 2009 12:43 pm

Re: Read more .. giving odd result

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Read more .. giving odd result

Post 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
giles
New Member
New Member
Posts: 8
Joined: Thu Jun 11, 2009 12:43 pm

Re: Read more .. giving odd result

Post 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.
alby

Re: Read more .. giving odd result

Post 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
giles
New Member
New Member
Posts: 8
Joined: Thu Jun 11, 2009 12:43 pm

[SOLVED] Read more .. giving odd result

Post 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

Code: Select all

detailpage=""
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.
Last edited by giles on Thu Jun 11, 2009 5:04 pm, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”