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.
Adding or editing menu items (can't seem to use default.master file) [RESOLVED]
whu606
MVP
Thanks very much for this theme, which I know my mobile users are going to be very grateful for.
I have some custom menu items, which I add via default.master.tpl to SiteMenu, but if I add a default.master file to the minusbaseline theme the contents of the Hamburger menu no longer appear.
Any tips as to how I could go about editing the SiteMenu?
Thanks.
0
Comments
What contents are you adding?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Just a couple of links to custom pages, which I have done via default.master on my site, but can't do with this theme, as far as I can tell.
This is how the code looks in my default.master file on my site atm:
Are you doing some type of parsing on the empty links?
This theme looks like it is doing to parsing of the hash of URLs. That could be your issue.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
@hgtonight
The issue for me is that the theme doesn't contain a default.master file, and if I add one, it breaks the hamburger style display of the categories etc.
In my current theme, I simply added the code above to my default.master.
So, I either need to find out how to add a default.master without breaking the theme, or to find a way to edit the links in SiteTile without using a default.master file.
Thanks for looking!
Have you tried adding the link using a plugin like Index plugin ? You also can add links into the theme hooks file , below I added buttons to the menu via the themehooks of my mobile theme.
example:
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
This is interesting. I copied
/applications/dashboard/views/default.master.tpl
into/themes/minusbaseline/views/default.master.tpl
on a fresh 2.2 install and everything still worked but a new notice showed up.This is no big deal as it is a notice. I was then able to add the markup you posted and the hamburger button worked.
I am not sure what is going on. What default.master.tpl file did you use as a template?
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Thanks @Vrijvlinder.
OK, @hgtonight , well, if it can be done, I must be doing something wrong!
I did copy over the file you mentioned.
I'll start again from clean and see how I get on.
Thanks for looking at this.
Will report back.
Thanks, @hgtonight
On a clean install it works as expected, so I'll have a fiddle and try to work out what was causing the issue.
If I find out, I'll post back here.
OK
Put that one down to gremlins, I reckon.
Installed a clean Vanilla 2.2, and as @hgtonight said, all was good with adding a default.master (on a local machine.)
Then added minus baseline theme to a hosted test forum, and the behaviour from yesterday wasn't repeated...
No idea what caused it, but thanks for taking a look, and thanks to @Bleistivt for the theme.