1. The forums have been upgraded to XenForo 1.4. Please post any issues or comments here.
  2. Our hosting provider will be performing some scheduled maintenance and upgrading during the early morning (US time) of Tue 28th July, starting at approx 2am EST, which will require some down time of the server.

Call a menu from within article

Discussion in 'Standard Support' started by rali, Apr 11, 2012.

  1. rali

    rali New Member

    Level: Community
    Hi,

    Is there a way to call a menu from within an article content i.e. use a placeholder or a php code within in article that when executed behaves like if a specific menu has been clicked

    joomla 2.5.4
    fabrik 3.5.x

    Thanks in advance
     
  2. rob

    rob Administrator Staff Member

    Level: Community
    Not entirely sure what you want here, but menu items are referenced by their Itemid

    so 'index.php?Itemid=1'

    will load your first menu item

    does that help?
     
  3. rali

    rali New Member

    Level: Community
    Hi,

    Thanks Rob for your reply.

    As you know we can call a form from within an article e.g {fabrik view=form id=x}. Is there a similar way for menus?

    I have an custom HTML module containing some PHP coding and I want at the end of this coding to trigger a menu dynamically. Is there a way to do this.

    Yes the link to the menu is 'index.php?Itemid=1' but how to execute it by coding; can we put it in a placeholder?

    Thanks
     
  4. rob

    rob Administrator Staff Member

    Level: Community
    what do you mean to trigger a menu dynamically?
     
  5. rali

    rali New Member

    Level: Community
    We generally click on a menu title to make it active (to trigger to menu); I want this to happen by coding. When a given code is executed a specific menu become active.
    for example I tried this placeholder but it does not do it
    {fabrik view=menu Itemid=1}
     
  6. jfquestiaux

    jfquestiaux Well-Known Member

    Level: Professional
    It is still very unclear what you want to achieve!
    Can you give a detailed example of what you try to do?
     
    1 person likes this.
  7. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Are you trying to actually open another page from your code? Like, a redirect?

    -- hugh
     
  8. rali

    rali New Member

    Level: Community
    Hi Hugh

    Yes, but to my understanding redirect cannot be used here?
     
  9. rali

    rali New Member

    Level: Community
    kindly bumps
     
  10. jfquestiaux

    jfquestiaux Well-Known Member

    Level: Professional
    As long as you don't explain exactly want you are trying to do, nobody can help you...
     
  11. rali

    rali New Member

    Level: Community
    the question is clear!!!!

    Please jfquestiaux before replying read previous messages, it was clear that Hugh understood my question
     
  12. troester

    troester Well-Known Member Staff Member

    Level: Standard
    Why?
    It's really not clear what you want to do.

    Where is the connection from 'opening a menu link in an article' to fabrik if you are running php code in a custom HTML module? You can "echo" a link with your PHP code.

    Fabrik content plugin ({fabrik...) displays fabrik stuff.
    You may display a form with a redirect or a details view with a link element or a calc element containing a link
     
    1 person likes this.

Share This Page