Fork me on GitHub

Main Menu Block functionality  Bottom

  • 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?
  • 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?
  • 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[&param=value[&param=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!
  • 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
  • Where can I find docs about the extended menù block?
    I woluld like to know how to add icons before the links
  • Just put your icon image-path on the image field for each link icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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
  • Omit the URL, try just with the path /icon.jpg icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • 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
  • FYI, this seems to work fine in the standard menu block as well. Examples:

    Code

    {Pagesetter:viewpub&tid=3&pid=2}
    {Users:loginscreen}

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