vali-admin
vali-admin copied to clipboard
Menus and pages
When I create the pages and link in the new menu, it is neither expanded nor active.
How can I edit pages, rename menus, and rename pages to php?
How is it possible?
Thank you...
I ran into the same problem and couldn't find any code that should have done the menu expanding. I added this to the javascript in main.js, just above the comment: // Activate sidebar treeview toggle
:
// set correct treeview to is-expanded, depending on the URL
if(path !== '/') {
// find the entry that contains the url as href
var $item = $(".treeview-item[href='" + url + "']")
.parents(".treeview").addClass("is-expanded")
}
That did the job for me. I will now see if can find the time to see what this "pug" is all about, so I can make a pull request to add this.
@micksp Its showing an error path is not defined
Okay guys. This is the development repository for a bootstrap/pug framework. It's not a general "I'm fucking clueless, but.." or "I want to X, show me how.."
Explain your problem (in detail), with some context, and maybe someone will be able to help you.
showing an error path is not defined is not helpful.