CMS MADE SIMPLE FORGE

Products

 

[#3640] Add a 'hierarchypage' parameter

avatar
Created By: Bryan Buxton (bryan)
Date Submitted: 2009-07-02 10:34

Assigned To:
Resolution: Fixed
State: Closed
Summary:
Add a 'hierarchypage' parameter
Detailed Description:
The Products module currently supports the ability to define a detailpage
parameter. Similarly, I really need to have that same functionality when
displaying a hierarchy. Since the hierarchy action does not support the
detailpage parameter the content is displayed inline with the current page. This
makes it impossible to use on anything but a 'products' page. Adding this
functionality will allow us to include the Products module in a navigation menu
like this:
{Products action='hierarchy' hierarchytemplate='menu' hierarchypage='products'}

More info in the forum post:
http://forum.cmsmadesimple.org/index.php/topic,35032.0.html

History

Comments
avatar
Date: 2009-10-09 08:29
Posted By: Bob Sideshow (sideshowbob)

+1 for this feature from me.
      
avatar
Date: 2010-05-01 05:19
Posted By: Alane Cole (curlypinky)

I think this would be really useful too! I hope it will be considered for the
next version.

I need it to function that way now so I modified action.hierarchy.php, line 103:
$row['downurl'] =
$this->CreatePrettyLink($id,'hierarchy',$returnid,'',$params,'',true);

changed to:
if (isset($params['detailpage'])) { //check for detailpage
	$detailpage = trim($params['detailpage']);
$row['downurl'] =
$this->CreatePrettyLink($id,'hierarchy',$detailpage,'',$params,'',true);
	}else{
$row['downurl'] =
$this->CreatePrettyLink($id,'hierarchy',$returnid,'',$params,'',true);
	} // EOF check for detailpage
      
avatar
Date: 2014-05-21 18:31
Posted By: Robert Campbell (calguy1000)

did this a long time ago.
      
Updates

Updated: 2014-09-27 09:12
state: Open => Closed

Updated: 2014-05-21 18:31
resolution_id: => 7