Page 1 of 1

Cataloger random display

Posted: Wed Aug 15, 2007 1:24 pm
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?

Re: Cataloger random display

Posted: Wed Aug 15, 2007 3:51 pm
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.

Re: Cataloger random display

Posted: Wed Aug 15, 2007 5:49 pm
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).

Re: Cataloger random display

Posted: Thu Aug 16, 2007 10:05 am
by jd
???
anyone?

Re: Cataloger random display

Posted: Thu Oct 25, 2007 6:06 pm
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