Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
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.
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.
Tagged:
0
Answers
Vanilla Forums COO [GitHub, Twitter, About.me]
$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.
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.