I'm using simple-navigation to dynamically generate my navigation depending on a permission level that the user has. It works fine but it doesn't seem to mark any item as current.
Any ideas?
The issue was that it needs the absolute path from the root, not the relative path.
Please read the 'Highlighting the active Navigation Item' section here: https://github.com/andi/simple-navigation/wiki/Configuration
Related
I can't find the way to do it.
I found only one page about Comments, how to turn on|off.
https://activeadmin.info/1-general-configuration.html#comments
The doc you linked to shows the comment_menu can be customized, and that includes changing the parent.
I have a umbraco solution, which has a below piece of code in my view,
var home = Model.AncestorOrSelf(1);
var primaryNav = home.GetPropertyValue<IEnumerable<IPublishedContent>>("primaryNav").Where(n => n.GetPropertyValue<bool>("hideFromNavigation") == false);
From my Umbraco back office, can someone please tell me how can i find the nodes which satisfy the above piece of code.
I'm trying to a new node to the existing navigation bar, but it is not coming up. What could i be missing here?
Please let me know, i'm new to umbraco.
My Umbraco version is 7.2.1
Also, what could be the meaning of "primaryNav", here home.GetPropertyValue<IEnumerable<IPublishedContent>>("primaryNav")
Go to the root page of the website in the back office content tree. On that page there should be a content picker called something like "Primary Nav".
That should show up all of the selected items that should appear. It's also checking for a hide from navigation property, which you'd have to check individually on each of the selected nodes.
How are you trying to add the node to the menu? If it's via the picker, then it SHOULD work, unless the page has the hide from navigation checkbox checked. Also make sure you publish the root page once you've added the page to the picker rather than just saving.
The only other thing that might be causing it to not show up would be if the Partial that renders the navigation is being cached. Look in the view and see if it's using CachedPartial, and if so, that may be your culprit.
I'm new in Vaadin. I did vaadin example http://demo.vaadin.com/addressbook/. My question is how I can also create another views and menu which will navigate user. Can I do it with MenuBar? Please explain me right way to do this.
I think everything you need is Navigator.
You can instantiate a navigator and attach it to your current page.
Then you attach views to it, with names.
And when you want to change view, you can simply call Page.getCurrent().getNavigator.navigate(String viewName)
See documentation for more informations.
I was wondering, if it is somehow possible to add a TextBox in the Application Bar area (the same way the Internet Explorer does), but I didn't find any information source about this. Have you any idea, how to accomplish this task?
You will not be able to add UIElements inside ApplicationBar as it is not derived from UIElement.
Alternatively, you can try adding a Grid at the bottom of the screen and color it similar to the ApplicationBar. Then add a TextBlock inside the Grid. This is just a workaround and not recommended as it is not according to the standards.
You can also check the following link:
http://www.maxpaulousky.com/blog/archive/2011/01/10/bindable-application-bar-extensions-for-windows-phone-7.aspx
I want to know in spine how to add and remove active class for div. In the firebug I saw initially 4 div inside, the first div having class as active when i click new link the div class active was removed for the first div at the same time the second div getting the class active. I don't have any idea how Spine add and removing class active.
By jquery we can do this. But i want to do this in spine (spine_rails)
Any idea?
Have a look at the Manager and Stack classes, I'm pretty sure that's what you're looking for. Stack has an internal Manager, which deals with keeping active state on only one controller at a time. It does that simply by adding the css class "active" to the currently active controller. From the docs:
A Stack doesn't alter the display CSS property of its controllers, but rather simply adds and removes an active class.
That explains what you're describing.
Not sure what you're looking for due to lack of information.
However, you can check spine stacks to see whether that's what you want.
http://spinejs.com/docs/stacks
To remove active class in spine_rails add following line to your spine:controller #el.removeClass('active')