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
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
Menu Block & pnModURL return different URLS? Why?
-
- Rank: Helper
- Registered: Sep 16, 2004
- Last visit: Oct 21, 2009
- Posts: 731
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
- Rank: Helper
- Registered: Sep 16, 2004
- Last visit: Oct 21, 2009
- Posts: 731
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
NCM
UHEweb -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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.
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
