Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 16

CurtisOdenDoudouSpencerMcTorbjornericgillettejohansonlockerpehja +9 guests

Theming Question: Custom Menus HTML

So, I'm creating a custom theme for Vanilla, so it will look like my site theme.
The problem is that I'm creating my own HTML, but Vanilla's functions show not only the URL but also the HTML, which is bad for me because I only want the URL. Isn't there anyway to get only the URL?

PS: I'm editing the file default.master.php in my theme directory.

Comments

  • TimTim
    Posts: 1,573
    I'm not sure what you're saying. What functions? What HTML?

    Vanilla Forums Senior Developer [GitHub, Twitter, About.me]

  • Posts: 26
    The menus functions. For example:

    $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'));

    This creates a full HTML for the dashboard menu, but I would like to just have the link/URL/hreaf. :)
  • Posts: 77
    Have you thought about setting the link name (i.e. 'Dashboard' in the above example) to whatever link URL you want displayed? Therefore it would display the link, as well as providing an actual link to that URL.
  • Posts: 26
    No. It will show HTML with the menus to that. I just want the URL, like:
    http://localhost/forum/index.php?p=/dashboard/settings
    This because the URL structure can be changed by the admin, so I want to know if there is any function that returns the correct URL. ;)
Sign In or Register to comment.