Best way to format URLs?  Top

  • 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
  • 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.
  • Thanks Mark, you da man!

This list is based on the users active over the last 60 minutes.