Page 1 of 1

News Module Help

Posted: Wed Aug 16, 2006 9:28 am
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..

Re: News Module Help

Posted: Wed Aug 16, 2006 5:03 pm
by Dr.CSS
How are you using the news tag?
What is diff. between left tag and right tag?

Re: News Module Help

Posted: Tue Aug 22, 2006 10:05 am
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.

Re: News Module Help

Posted: Tue Aug 22, 2006 2:28 pm
by Dr.CSS
Are you using {cms_module module='news'} as the tag?

Re: News Module Help

Posted: Tue Aug 22, 2006 3:19 pm
by Fido
yes !

Re: News Module Help

Posted: Wed Aug 23, 2006 11:48 am
by Fido
{cms_module module="news" number="5"}

Re: News Module Help

Posted: Wed Aug 23, 2006 6:53 pm
by Dr.CSS
try it with single quotes 'news'

Re: News Module Help

Posted: Thu Aug 24, 2006 12:30 pm
by Fido
nothing change, i have the same error message et it doesn't display the detail of the news  >:(

Re: News Module Help

Posted: Thu Aug 24, 2006 4:06 pm
by Dr.CSS
What does the detail template look like?

Re: News Module Help

Posted: Thu Aug 24, 2006 5:45 pm
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}

Re: News Module Help

Posted: Tue Aug 29, 2006 2:23 pm
by Fido
even if i restore the defaults parameters, i 've the same error message and non news detail displayed.

Re: News Module Help

Posted: Mon Dec 04, 2006 10:40 am
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

Re: News Module Help

Posted: Sat Dec 16, 2006 7:36 am
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