Forum Activity

Forum feed

shorturl in pncommerce  Top

  • 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

    Code

    $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:

    Code

    <!--[ 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?

This list is based on the users active over the last 60 minutes.