Additional Content Modules

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
fadum

Re: Additional Content Modules

Post by fadum »

This is the error

Fatal error: Smarty error: [in db:support line 90]: syntax error: unrecognized tag 'content' (Smarty_Compiler.class.php, line 580) in /xxpathxx/public_html/lib/smarty/Smarty.class.php on line 1088
fadum

Re: Additional Content Modules

Post by fadum »

Been playing around and i still get the error if i remove the normal content tag, so im limited to 2 extra blocks which is such a shame as these blocks would be excellent for me if i could add more.

I did notice i can add the same block more than once on a page, just only 2 unique

Thanks
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Additional Content Modules

Post by Ted »

As far as I know, there is no good reason why only 2 would work...

I'll look into it.
fadum

Re: Additional Content Modules

Post by fadum »

wishy wrote: As far as I know, there is no good reason why only 2 would work...

I'll look into it.
Cheers Wishy, ive been designing with these blocks and now its come to sudden halt, i hope you can find something.
fadum

Re: Additional Content Modules

Post by fadum »

Just upgraded to beta4, still wont work
fadum

Re: Additional Content Modules

Post by fadum »

Hi can anyone help with this please?, it would be very much appreciated as im stuck with a site and can not continue untill i can add more content blocks

Many Thanks in Advance
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Additional Content Modules

Post by Ted »

Ok, bug is fixed and committed.

For the daring...

Open up lib/contenttypes/Content.inc.php

Look for:

Code: Select all

$count = count($matches);
and change to:

Code: Select all

$count = count($matches[0]);
That'll do the trick.
fadum

Re: Additional Content Modules

Post by fadum »

excellent thanks! works fine now.

Thanks again, life saver :)
fadum

Re: Additional Content Modules

Post by fadum »

Sorry the error still shows in preview, no big deal but thought you should know
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Additional Content Modules

Post by Ted »

Now that's strange.  I'll take a look.
freshprofil

Re: Additional Content Modules

Post by freshprofil »

I really liked thisone.. but how can you keep the conent there if you navigate to another page? see: http://gallery.thefagerlands.com/cmsmad ... istekunder for the green box to have text, and http://gallery.thefagerlands.com/cmsmad ... age=visjon for the blue box.. but when you navigate to another page, it dissipears.. any ideas?
Post Reply

Return to “Developers Discussion”