So I am trying to add an item to the main menu that links to a specific category id for news.
I have changed my category registry to use a news specific category and I want to be able to build links based on category. What I am trying to achieve is sort of what topics did in .7xx. I just need to be able to link to s pecific category now for news.
In the main menu what would be the syntax? I keep trying to get it but I'm not getting it, nor can I find a guide and I have searched for 20 minutes for it in the forums.
Lets assume the category I want to highlight is 10006. In the URL field how would I link it correctly?
{News:10006:1} or something like that?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- 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
- 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
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
Main Menu Block functionality
-
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
-
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Additionally, I am adding links that reference the Pages module:
{Pages:view:display:2} yields: index.php?module=Pages&type=display&func=view
I need to get: index.php?module=Pages&func=display&pageid=2
But this doesn't work: {Pages::display:pageid=2} it yields: index.php?module=Pages&type=display
Please help me understand... :( This is prolly so simple.
I know I could just put in the index.php?... in the URL but is that the best way to do it? -
- Rank: Expert
- Registered: Nov 23, 2003
- Last visit: Dec 13, 2009
- Posts: 1487
It's bas ackwards... err counter intuitive to PN I mean. I looked at the blocks module and found it expects the format of:
{module:function[¶m=value[¶m=value[etc.]]]:type}
So for News categories you'd want;
{News:main&cat=10006:user} (the user is optional and I'm assuming cat over catid or whatever the News module uses)
And for Pages it'd be:
{Pages:display&pagid=2:user}
And thanks for asking this question, it was on my 'figure it out later' list yet was holding me back from building a display menu to organise my site with.
EDIT:
This is of course assuming that you're using the extended menu block over the default one.
edited by: Topiatic, Feb 28, 2008 - 03:05 PM
--
Under Construction! -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Quote
This is of course assuming that you're using the extended menu block over the default one.
Doesn't everyone ;)
Thanks for the help, I'll try this out in a bit. Currently I'm trying to put some paypal buttons up AND stay XHTML 1.0 strict compliant
-
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
Where can I find docs about the extended menù block?
I woluld like to know how to add icons before the links -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Just put your icon image-path on the image field for each link
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
Thank you for the answer, but I made it:
I put there all the URL (http://www.XXXXXXX/icon.jpg)
then I click on "update" and it disappears (complete white field) :(
maybe it's a "file attribute" problem (jpg/php or HTML)?
or maybe an icon size problem?
Or maybe some bug updating form 764?
edited by: lordevol, Oct 22, 2008 - 06:41 PM -
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
-
- Rank: Softmore
- Registered: Oct 17, 2008
- Last visit: Oct 21, 2009
- Posts: 163
Thanks, I solved :)
I had to unckeck the "eng" language form the "active" field (I'm italian), maybe it's a zikula translation's bug?
I don't care, now it accepts the icons.
But still it create a new blank line automatically every time I click on "update" (without click on "add a new link")
But I don't care now, it works
- Moderated by:
- Support
