Page 1 of 1
News Pagination error
Posted: Sat Apr 07, 2007 4:36 am
by shandog
I am trying to use of of the many News Pagination solutions posted in this forum but keep getting the same error with all of them that I try, which is:
string(122) "Smarty error: [in content:content_en line 16]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1396)" string(122) "Smarty error: [in content:content_en line 28]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1396)"
The page is located at
http://dev.filtercouncil.org/newsite/in ... ?page=news and I am using the most current version of cmsms.
Any help would be greatly appreciated.
Re: News Pagination error
Posted: Sat Apr 07, 2007 4:39 am
by Vin
Looks like a problem of a smarty template...
However, try the solution I posted in the documentation, it should work (at least for MySQL).
Re: News Pagination error
Posted: Sat Apr 07, 2007 5:25 pm
by shandog
I did try that solution and it does create page links, but my news items are not displaying. Any ideas?
Re: News Pagination error
Posted: Sat Apr 07, 2007 5:33 pm
by shandog
Vin,
I posted the solution you suggested to my page, updated my UDt, and I am still getting the smarty error. Is there some other configuration I need to make. The error I am getting is:
string(122) "Smarty error: [in content:content_en line 15]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1396)" string(122) "Smarty error: [in content:content_en line 17]: syntax error: unidentified token ';' (Smarty_Compiler.class.php, line 1396)"
Re: News Pagination error
Posted: Sat Apr 07, 2007 6:10 pm
by Vin
Could you post your page template (the page where the news are), please? Then I may see it more clearly.
[edit] A little more semicolons in your page templates?

Re: News Pagination error
Posted: Sat Apr 07, 2007 9:17 pm
by shandog
The link is here:
http://dev.filtercouncil.com/newsite/in ... ?page=news
I have the following in a content page as well. Thanks VERY Much for your time.
{cms_module module='menumanager' start_page="consumer" template='show_children_of'}
{title}
{newsindex number='5' start='0' category='News' count_expired='true' delimiter='|'}
{cms_module module='news' number=$news_number start=$news_start category='News' showarchive='true'}
{if $news_start > '0'}<a href="{$news_prev_url}">Older stories</a> {/if}
{$newscrumbs}
{if $news_start + $news_number< $newscount}<a href="{$news_next_url}">Newer stories</a> {/if}
Re: News Pagination error
Posted: Sat Apr 07, 2007 10:05 pm
by shandog
I noticed that CMSMS was converting my symbols to text (< and >) I converted those characters back to the actual character but CMSMS is automatically converting it back to the text version. My code is below (I bolded the areas being automatically converted)
{newsindex number='5' start='0' category='News' count_expired='true' delimiter='|'}
{cms_module module='news' number=$news_number start=$news_start category='News' showarchive='true'}
{if $news_start > '0'}Older stories {/if}
{$newscrumbs}
{if $news_start + $news_number< $newscount}Newer stories {/if}
Re: News Pagination error
Posted: Sun Apr 08, 2007 6:14 am
by Vin
It's the WYSIWYG editor. As mentioned in the documentation of the news pagination, you should have the WYSIWYG turned off when editing the smarty template for news in the page. The are automatically converted into HTML entities so that they wouldn't collide with the . It's not a problem of WYSIWYGS, they're here to edit HTML, not Smarty. So you have to be careful when inserting a smarty tag into the template - especially double quotes (") are unwanted.
Re: News Pagination error
Posted: Sun Apr 08, 2007 8:58 pm
by shandog
VIn,
You nailed it. That did resolve the Smarty error, however, my news is still not displaying. It only shows a number one, no news items. Oh well, guess I will have to find a manual way to handle this.
Re: News Pagination error
Posted: Mon Apr 09, 2007 2:22 pm
by Vin
This is strange... are you sure you've chosen the right category? If you have, try using some numbers instead of variables in the cms_module. I dunno, maybe I just forgot something in UDT...