PrettyURL bug with Products module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
caciavar
Forum Members
Forum Members
Posts: 64
Joined: Wed Feb 11, 2009 6:30 pm

PrettyURL bug with Products module

Post by caciavar »

CMSMS Version: 2.1.5
Products Module Version: 2.25.3
Bug reported here: http://dev.cmsmadesimple.org/bug/view/11225

I'm not actually sure if this ever behaved as I would expect it to behave in any version of the Products module. This behaviour definitely goes back quite a few versions.

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=Pr ... eturnid=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.
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: PrettyURL bug with Products module

Post by chrisbt »

Should the parameter be 'hierarchytemplate' instead of 'summarytemplate'?

{Products action='hierarchy' hierarchytemplate="hierarchy2"}
caciavar
Forum Members
Forum Members
Posts: 64
Joined: Wed Feb 11, 2009 6:30 pm

Re: PrettyURL bug with Products module

Post by caciavar »

By omitting the "hierarchytemplate" parameter it will use the default hierarchy template. But yes, that parameter can also be used.

What I'm referring to is that there is a need to specify which summary template is used when you "drill-down" to a summary page (that uses a summary template) from a hierarchy page (which uses a hierarchy template).
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: PrettyURL bug with Products module

Post by chrisbt »

Ok - thanks :)
Post Reply

Return to “Modules/Add-Ons”