Hi,
In order to comply with the latest Postnuke standards, I'm trying to figure out which is the best way to format URLs in new modules. Of course I also want the URLs to be compatible with the short-URL features of Xanthia.
From looking around different modules, I see examples like:
index.php?name=MODNAME
index.php?module=MODNAME
modules.php?op=modload&name=MODNAME
Which is the correct one going forward? I'm guessing that it's the first one, but I would like to make sure.
Thanks,
Grant
- mdee responded to »Different page content under one template (tpl file) based on URL« 07:17 AM
- Guite responded to »Remove contents of nuke_sc_anticracker from Database« 01:30 AM
- espaan responded to »Categories disappear when editing ...« 08. Feb
- eledril responded to »How decrease zikula cpu usage« 08. Feb
- jmvaughn responded to »PN 0.764 to Zikula 1.1.2 (migration) Internal Server Error« 08. Feb
- eledril created topic »Where can I download BBCode and BBSmile?« 08. Feb
- Paustian responded to »Need Feedback« 08. Feb
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
Best way to format URLs?
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Depends on the modue....
index.php?module=MODAME is for API compliant modules (type 2 in the modules table).
The remaining two are for non API compliant modules (type 1 in the DB). Both index.php?name=MODNAME and modules.php?op=modload&name=MODNAME are actually the same thing (.750+) since any call to modules.php is handed directly onto index.php and index.php sets a default of 'modload' for 'op' if it's not present. So it's best to use index.php?name=MODNAME since it's shorter....
-Mark
--
Visit My homepage and Zikula themes.
- Moderated by:
- Support
