news module, news expanding problem clicking on more Topic is solved

General project discussion. NOT for help questions.
Post Reply
ggould75

news module, news expanding problem clicking on more

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: news module, news expanding problem clicking on more

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

Re: news module, news expanding problem clicking on more

Post 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
Post Reply

Return to “General Discussion”