CMS MADE SIMPLE FORGE

Download Manager

 

[#8320] Template parameter does not work with detail page

avatar
Created By: Daan Aikema (Ertenal)
Date Submitted: Wed Aug 29 05:10:05 -0400 2012

Assigned To:
Version: 1.5.2
CMSMS Version: 1.11.1
Severity: Major
Resolution: None
State: Open
Summary:
Template parameter does not work with detail page
Detailed Description:
When i use the downloadmanager tag to create a detailed page for one download
and want to specify a custom template then it will not work.

I use this tag:
{cms_module module='DownloadManager' action='detail' alias=$alias
template='Custom_template'}

Instead of showing the Custom_template template it will show the default
template.


History

Comments
avatar
Date: 2012-08-29 05:17
Posted By: Daan Aikema (Ertenal)

What i do to fix this for now:

Open action.detail.php and find the line that says:
if( isset( $params['template'] ) && $template =
$this->GetTemplate('detail_'.$templatename) )

Before add the line:
if(empty($templatename) && !empty($params['template'])) $templatename =
$params['template'];
      
Updates

Updated: 2012-08-29 05:17
resolution_id: => 5