Fork me on GitHub

Menu Block & pnModURL return different URLS? Why?  Bottom

  • The menu block, when entering in the format [Module], returns a URL similar to:

    index.php?name=Module

    But, using pnModURL (via pnRender plugin) returns:

    index.php?module=Module

    As far as I thought, NAME= is the new way to call modules, rather than MODULE= .

    Which should be used? And why the difference between menu blocks and pnModURL?

    I'm looking at this on a .764 install.

    Thanks,

    NCM
    UHEweb
  • using square brackets returns an old style URL (i.e. index.php?name=). Use curly brackets to form a new style URL (i.e. index.php?module=) e.g. {Module}.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • And here I was thinking [] were the new way for how long? lol

    So why does a new .764 install use old style links with name=Module ?

    Here I was thinking .764 should be the example to follow yet it's 180 deg. from it.

    So are there any requirements for a module to be called the new way versus the old? Or can any be called that way?

    Thanks Mark - appreciate all the hard work. I've got one big project I need to get done, and then I'll have some time to work on docs or something for .8 icon_smile

    NCM
    UHEweb
  • It's not so much 'an old way' and 'a new way'. It depends on the type of module. A type 1/old style module containing index.php and admin.php will use an old style URL. A type 2/API compliant module containing pnuser.php and pnadmin.php will use a new style URL.

    With .8 this is less of a problem since, apart from the topics module (for backwards compatability), there are no type 1 modules.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • 0 users

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