News Pagination error

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
shandog

News Pagination error

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

Re: News Pagination error

Post 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).
shandog

Re: News Pagination error

Post by shandog »

I did try that solution and it does create page links, but my news items are not displaying. Any ideas?
shandog

Re: News Pagination error

Post 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)"
Vin

Re: News Pagination error

Post 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? :-\
Last edited by Vin on Sat Apr 07, 2007 6:13 pm, edited 1 time in total.
shandog

Re: News Pagination error

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

           
       
   
shandog

Re: News Pagination error

Post by shandog »

I noticed that CMSMS was converting my symbols to text (&lt  and &gt) 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}
Vin

Re: News Pagination error

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

Re: News Pagination error

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

Re: News Pagination error

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

Return to “CMSMS Core”