News Module Help

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
lepoticum

News Module Help

Post by lepoticum »

Hi,
im using CMS Made Simple 0.12.1 and News module 2.0.3

Ive set up my news module for my site, i have two columns. the left column displays the news when u click 'more' in the news summary and the news summary is displayed on the left. However when i open the page no default news comes up on the left, instead i get this code:  string(43) "Smarty error: eval: missing 'var' parameter".

The news summary on the right  is all set up correctly but How do i go about setting up so the news part on the left has a default opening text when the page opens?

Thanks..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Help

Post by Dr.CSS »

How are you using the news tag?
What is diff. between left tag and right tag?
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

Hello,

I've have the same bug with cmsms 0.13. , when i want to see the detail of the news i've this message :

string(43) "Smarty error: eval: missing 'var' parameter"


and when using pretty url or not with the default template.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Help

Post by Dr.CSS »

Are you using {cms_module module='news'} as the tag?
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

yes !
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

{cms_module module="news" number="5"}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Help

Post by Dr.CSS »

try it with single quotes 'news'
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

nothing change, i have the same error message et it doesn't display the detail of the news  >:(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Help

Post by Dr.CSS »

What does the detail template look like?
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

{$entry->title}

-->

{if $entry->category}

{$entry->category}

{/if}

{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}

{if $entry->summary}


{eval var=$entry->summary}


{/if}

{if $entry->author}

{$entry->author}

{/if}


{eval var=$entry->content}



{$entry->printlink}

{if $return_url != ""}
{$return_url}
{/if}
Fido
Forum Members
Forum Members
Posts: 104
Joined: Fri Mar 31, 2006 3:10 pm

Re: News Module Help

Post by Fido »

even if i restore the defaults parameters, i 've the same error message and non news detail displayed.
tonyg

Re: News Module Help

Post by tonyg »

Is something happening about fixing this error? I now have it on one of my sites and nothing I do seems to fix it.

I am using CMSMS V0.13. My news detail template is as follows:

Code: Select all

<h3 id="NewsPostDetailTitle">{eval var=$entry->title}</h3>

<hr id="NewsPostDetailHorizRule">

{if $entry->formatpostdate}
	<p id="NewsPostDetailDate">
		{$entry->formatpostdate}
	</p>
{/if}

<p id="NewsPostDetailContent">
	{eval var=$entry->content}
</p>

<p id="NewsPostDetailPrintLink">
	{$entry->printlink}
{if $return_url != ""}
             | {$return_url}

{/if} 
 | {cms_selflink page='30' text='See more news'}
</p>


{cms_module module="comments" modulename="News"  pageid=$entry->id emailfield=1 websitefield=1 spamprotect=1 notify="president@mraqld.org"}
My news module placement code is:

Code: Select all

{cms_module module='news' number='3' moretext='Read article' dateformat='%d/%m/%Y' detailpage='latest_news'} 
The 'latest_news' page looks like:

Code: Select all

{cms_module module='news' dateformat='%d/%m/%Y' entry='content' detailpage='latest_news' returntext='Back to Latest News' moretext='Read article'}

I have tried restoring default templates also, and no joy.

Need help urgently!

TonyG
www.mraqld.org
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: News Module Help

Post by Dr.CSS »

You only need one page to have the news tag in it unless it's a page that is going to have news on it also, if it's just a landing page no tag needed... if nothing but a landing page and it's not shown in the menu then when you make it just put &nbsp: in the content box so you don't get a "No Content" error...

You may want to go to Extensions > Modules and click the word 'Help' to the right of News to see if it takes the detail page parameter... nad other parameters/instructions also visit the Handbook for more info...

http://wiki.cmsmadesimple.org/index.php ... ntent/News
Locked

Return to “CMSMS Core”