PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  Tutorials and Solutions ::  how to customize url rewriting with directories

Moderated by: Support Team

Bottom
how to customize url rewriting with directories

  • Link to this postingPosted: 12.03.2008, 20:00
    Profile Homepage
    mumuri
    rank:
    pnSoftmore pnSoftmore
    registered:
     May 2004
    Status:
    offline
    last visit:
    04.05.08
    Posts:
    53
    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


    -----
    Top Flood - a discussions board based on pnForum
  • Link to this postingPosted: 12.03.2008, 20:06
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    24.04.08
    Posts:
    7647
    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
  • Link to this postingPosted: 12.03.2008, 20:07
    Profile Homepage
    mumuri
    rank:
    pnSoftmore pnSoftmore
    registered:
     May 2004
    Status:
    offline
    last visit:
    04.05.08
    Posts:
    53
    thanks

    -----
    Top Flood - a discussions board based on pnForum

Start ::  PostNuke 0.7 Support ::  Tutorials and Solutions ::  how to customize url rewriting with directories

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke