Cataloger random display

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
jd

Cataloger random display

Post by jd »

I've got a question that I can't figure it out by myself:

on a page, I've got this:

Code: Select all

{cms_module module='Cataloger' action='random'}
which supposively has to show a random pick from the cataloger items I've got.

However, I get the following error:

Code: Select all

string(65) "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""
Any ideas why this is?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cataloger random display

Post by Dr.CSS »

Maybe you need to add the template variable?...

From the cataloger Help...

Random Items Feature List

The syntax for a "random" list is like:

{cms_module module='Cataloger' action='random' sub_template='my_sub_template'}, where sub_template is the template to use to render the list. There are two optional parameters, count='3' alias='page_alias', where count is the number of items to include, and page_alias indicates the top of the tree (e.g., a place in your menu hierarchy, typically a category page) in which to look for new items. A special value for "page_alias" is "/", which means to use all pages in the site.
jd

Re: Cataloger random display

Post by jd »

I forgot to mention it - I tried this, but stayed the same. Both with names of templates within the Cataloger module and template (the general ones).
jd

Re: Cataloger random display

Post by jd »

???
anyone?
Duketown

Re: Cataloger random display

Post by Duketown »

jd,

Does your template name contain special characters?
Does the content of the used template contain special characters?

I had much support from the following message:
http://forum.cmsmadesimple.org/index.php/topic,14674.msg80513.html#msg80513

Duketown
Locked

Return to “CMSMS Core”