Hello
I was testing the pncommerce shop under .8 inclusive the shorturls.
My pncommerce version worked fine and the shorturls i created too.
Except a minor glitch. I am not sure this is a .8 problem but
well...
Please look at this link for a demo item in pncommerce .8 with shorturl:
http://static.88-198-46-59.clients.your-server.de/pn.php?module=pncommerce&func=categoryview&CategoryID=1
I added for that to outputfilter.shorturls the lines
$prefix . 'pn.php\?module=pncommerce&(amp;)?func=([\w\d\.\:\_\/]+)"|',
$prefix . 'pn.php\?module=pncommerce&(amp;)?func=([a-zA-Z0-9_+]+)&(amp;)?([a-zA-Z0-9_+]+)=([a-zA-Z0-9_+]*)"|',
$prefix . 'pn.php\?module=pncommerce&(amp;)?func=([a-zA-Z0-9_+]+)&(amp;)?([a-zA-Z0-9_+]+)=([a-zA-Z0-9_+]*)&(amp;)?([a-zA-Z0-9_+]+)=([a-zA-Z0-9_+]*)"|',
and
'"shop-.'.$extension.'"',
'"shop---.'.$extension.'"',
'"shop-----.'.$extension.'"',
and to htacces
# pncommerce
RewriteRule ^shop-([^-]+)\.htm$ pn.php?module=pncommerce&func= [L,NC,NS]
RewriteRule ^shop-([^-]+)-([^-]+)-([a-zA-Z0-9_]+)\.htm$ pn.php?module=pncommerce&func=&= [L,NC,NS]
RewriteRule ^shop-([^-]+)-([^-]+)-([^-]+)-([^-]+)-([a-zA-Z0-9_]+)\.htm$ pn.php?module=pncommerce&func=&=&= [L,NC,NS]
As you can see it works fine - except 3 points:
The "add" and "submit" button and the "You are here: Start > CATEGORYTEST" link.
The point is, that my shorturl defines should cover this module=pncommerce and
func=catalogview - it works fine for the buttons on the bottom of the page.
In the pncommerce template the line for the "You are here: Start > CATEGORYTEST"
part is this:
<!--[ pnml name='_PNC_YOUAREHERE' ]--> <!--[ pncCategoryPath CategoryID=$CategoryID ]-->
Where pncCategoryPath is a function call.
When i understand it right, then the output from pncCategoryPath is sneaked beside the
Smarty filder which creates the shorturl, right?
So, how to tell
PostNuke to apply the filter on that output too?
Must i add something to the template or is it done in the functions itself or is it
a glitch?