Page 1 of 1

Smarty error when using category=all in Uploads module

Posted: Thu Dec 14, 2006 4:12 pm
by jmcgin51
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"??

Re: Smarty error when using category=all in Uploads module

Posted: Thu Dec 14, 2006 6:57 pm
by Dee
It's a bug.
Hopefully calguy (or someone else) will find the time to fix it.
jmcgin51 wrote: Also, if I want to display the files in multiple categories, but not all categories, can I say category="cat1,cat2,cat3"??
Looking at the code... nope, you can't.

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;
	   }
       }
Regards,
D