vali-admin icon indicating copy to clipboard operation
vali-admin copied to clipboard

Menus and pages

Open marcelloinfoweb opened this issue 6 years ago • 3 comments

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...

marcelloinfoweb avatar Feb 18 '19 12:02 marcelloinfoweb

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 avatar Feb 24 '19 20:02 micksp

@micksp Its showing an error path is not defined

vishaalmandge avatar Dec 27 '19 04:12 vishaalmandge

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.

trasherdk avatar Dec 27 '19 18:12 trasherdk