Page 1 of 1

news module, news expanding problem clicking on more

Posted: Wed Oct 03, 2007 6:27 am
by ggould75
Hi all,
I'm new to cmsms. I have a problem with News module.
Here's the code I use on my template (where 'news-2' is the same page-id used for display summary):

{news detailpage='news-2'}

The problem is when I click on 'more', the page is reloaded but show always summary.
I tried to change the detailpage id with the cmsms original news page (template used by default from cmsms after installation):
{news detailpage='news'}  and in this case news is expanded correctly.

I can't understand what I'm missing on my template.
Thanks

Re: news module, news expanding problem clicking on more

Posted: Wed Oct 03, 2007 6:50 am
by Dr.CSS
If the news is using the same page it's on for summary "(where 'news-2' is the same page-id used for display summary):" and detail you don't need to add that parameter...

Re: news module, news expanding problem clicking on more

Posted: Sat Oct 06, 2007 10:25 am
by ggould75
mark wrote: If the news is using the same page it's on for summary "(where 'news-2' is the same page-id used for display summary):" and detail you don't need to add that parameter...
Thank you for your reply.
The problem is the same. When I click on 'more' or on news title url become
http://atreyu/foundation/index.php?mact ... eturnid=57
but still with summary.
If click on 'more' from the cmsms default homepage, it expands correctly.

If this can help, here my page template:



    {sitename} - {title}
    {metadata}
    {stylesheet}

    {literal}
   
h1 { padding-left: 0.5em; }
   
    {/literal}





{global_content name='javascript'}


   
        {global_content name='language selection'}
   

   

   
{global_content name='menu'}
   

   

    {global_content name='gallery slide'}
   
   
   
      {* Start News *}
     
{news number='3' }
     
      {* End News *}

   
   
   
    {global_content name='footer'}





-------------------------------------------------


and here the summary news templates flagged as default:



{if $pagecount > 1}
 
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber
{/if}
{foreach from=$items item=entry}


{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}


{$entry->titlelink}



{$category_label} {$entry->category}


{if $entry->author}

{$author_label} {$entry->author}

{/if}

{if $entry->summary}

{eval var=$entry->summary}



[{$entry->morelink}]


{else if $entry->content}


{eval var=$entry->content}

{/if}


{/foreach}




Thanks,
Marco