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

Dizkus

Bottom
how to customize url rewriting with directories
  • Posted: 13.03.2008, 01:00
     
    mumuri
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    192
    By default, if you activate URL rewriting using the "directory" options, your urls will look like this

    Quote


    /Pagesetter/myfunction


    But the word "Pagesetter" in the URL doesn't give you a useful information in terms of SEO (and a non developper user doesn't know what is Pagesetter).

    We would like to customize this word

    In order to do that you can simply change the module "name",by default this name is stored in "modules\[module]\pnlang\eng\version.php", in the "*_DISPLAYNAME" variable. In some module, the name is directly in the "modules\[module]\pnVersion.php" in $modversion['displayname'].

    By setting this variable name, and re-installing the module,the URL will lool like this

    Quote

    /My-Name/myfunction


    --
    4 pages of french & english Zik.1 tips
  • Posted: 13.03.2008, 01:06
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    A better way is to change the display name directly from the admin interface, Go to Administration -> modules -> edit (for the module your interested in).

    -Mark
  • Posted: 13.03.2008, 01:07
     
    mumuri
    rank:
    Helper Helper
    registered:
     May 2004
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    192
    thanks

    --
    4 pages of french & english Zik.1 tips

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula