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
Forum Activity
- Upgrade Old Postnuke Site on Mar 16
- Chat module? on Mar 16
- Redirect variable. on Mar 16
- problems with timeIT pop-up calender not inserting/applying date - maybe ??? on Mar 16
- how to change the format of shorturls on Mar 15
- the meta options in news are not showing the dates on Mar 15
- new theme 3TBase available on Mar 15
Zikula Blog
- How to Become a HipHop Fan on Feb 03
- HTML5 on Feb 02
- Support Free Software on Jan 22
- Module Files available on Dec 13
- Why I love Zikula (Reason #768) on Nov 11
- Theme Creator? on Nov 08
- Time to Embrace PHP 5 on Nov 08
Login
Best way to format URLs?
-
- Rank: Moderator
- Registered: 18.03.02
- last visit: 21.10.09
- Posts: 6611
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
