CMS MADE SIMPLE FORGE

Products

 

[#11225] Pretty URLs not working with action='hierarchy' and summarytemplate parameter

avatar
Created By: Chris (caciavar)
Date Submitted: Wed Nov 23 22:28:47 -0500 2016

Assigned To: Robert Campbell (calguy1000)
Version: 2.25.3
CMSMS Version: 2.1.5
Severity: Minor
Resolution: Invalid
State: Closed
Summary:
Pretty URLs not working with action='hierarchy' and summarytemplate parameter
Detailed Description:
When URL rewriting is enabled, and the action is set to 'hierarchy' the
summarytemplate parameter is not incorporated into the pretty URL.

Example 1 - Pretty URLs disabled:
{Products action='hierarchy' summarytemplate="summary2"}

When the above tag is used, the resulting URL from a hierarchy report will be:
http://www.myhost.com/index.php?mact=Products,cntnt01,default,0&cntnt01summarytemplate=summary2&cntnt01hierarchyid=1&cntnt01returnid=34

...which will link to the summary list with the appropriate summary template.

Example 2 - Pretty URLs enabled:
{Products action='hierarchy' summarytemplate="summary2"}

When the above tag is used, the resulting URL from a hierarchy report will be:
http://www.myhost.com/products/byhierarchy/1/34.html

...which will link to the summary list with the *default* summary template,
ignoring the summary template parameter which specifies the template to be used
for the (default) summary action.


History

Comments
avatar
Date: 2017-05-10 12:23
Posted By: Robert Campbell (calguy1000)

You cannot have every possible parameter on the URL and still call it pretty.

see {cms_action_hint} or {module_action_hint) {CGExtensions/CGSimpleSmarty for
alternate instructions as to how instruct a module as to what template to use.
      
Updates

Updated: 2017-06-26 19:53
state: Open => Closed

Updated: 2017-05-10 12:23
resolution_id: 5 => 9

Updated: 2016-11-23 22:32
resolution_id: => 5