Hi
Can anyone tell me why pnModURL replaces underscores with spaces in the module name itself?
So instead of index.php?module=My_module I get index.php?module=My%20module - it annoys me to have spaces is the URL like that, and My%20module is not the name of the module...
Thanks in advance for clarifying this!
Best regards, Jonas
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
pnModURL replacing underscore with space in modname?
-
**unknown user**
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1097
Most probably due to the way you defined the name in your pnversion.php
Code
$modversion['version']
$modversion['description']
$modversion['displayname']
If you wrote My Module in the display name, that is what you will see in the URL... you can change that by going into Admin - Modules and modify the name via the modify link on your module line.
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 11
Ahh - I see. So when I haven't specified a display name, it tries to pretty-fy the actual module name by replacing underscores with spaces as a default.
Now I may be asking the stupid question, but a quick search didn't tell me - what else is display name used for (other than in modules listing in admin of course)? Or are people really that interested in being able to point to a specific module by something else than the module name? -
**unknown user**
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 1097
jonasdelfs
Ahh - I see. So when I haven't specified a display name, it tries to pretty-fy the actual module name by replacing underscores with spaces as a default.
pnModUrl uses rawurlencode
jonasdelfs
Now I may be asking the stupid question, but a quick search didn't tell me - what else is display name used for (other than in modules listing in admin of course)?
You can see the example here why many users would do that. Our Pagesetter installation is called "Database", our pnWikka module has been changed to Wiki.
So if you point your browser to either index.php?module=pnWikka or index.php?module=Wiki .... you will fall on the same module.
jonasdelfs
Or are people really that interested in being able to point to a specific module by something else than the module name?
Yes... see up.
- Moderated by:
- Support
