As the title says, I get a Smarty error when I attempt to use the following code in my page:
{cms_module module="Uploads" category="all" mode="summary"}
The error is:
string(84) "Smarty error: unable to read resource: "module_db_tpl:Uploads;upload_displaysummary""
If I select a specific category, I have no problems...
Any ideas?
Also, if I want to display the files in multiple categories, but not all categories, can I say category="cat1,cat2,cat3"??
Smarty error when using category=all in Uploads module
Re: Smarty error when using category=all in Uploads module
It's a bug.
Hopefully calguy (or someone else) will find the time to fix it.
Regards,
D
Hopefully calguy (or someone else) will find the time to fix it.
Looking at the code... nope, you can't.jmcgin51 wrote: Also, if I want to display the files in multiple categories, but not all categories, can I say category="cat1,cat2,cat3"??
Code: Select all
// get the category id
$category = array();
if( $params['category'] != 'all' )
{
$category = $this->getCategoryFromName( $params['category'] );
if( !$category )
{
$this->_DisplayErrorPage ($id, $params, $returnid,
$this->Lang ('error_categorynotfound'));
return;
}
}
D

