Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
shorturl in pncommerce
  • Posted: 06.10.2007, 01:55
     
    rank:
    Softmore Softmore
    registered:
     February 2005
    Status:
    offline
    last visit:
    26.07.08
    Posts:
    61
    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?

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula