Smarty error when using category=all in Uploads module

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.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Smarty error when using category=all in Uploads module

Post 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"??
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

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

Post 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
Post Reply

Return to “CMSMS Core”