How can I add nested menu deeper more than 3 level in shopify main-menu? - nested

I want my nested menu to look like :
Men-> Fashion-> Shoes-> Sneakers
This is how it looks like right now
I've tried adding nested menu deeper than 3 levels from the navigation but from there it is only possible to add 3 levels.Is there any way to do it from the liquid?I'll prefer not to do it from any app.

Related

Adding position to nodes in view results

In Drupal 8 I have a view that shows nodes in the result. What I need is to know the order that each node has in the results list. In other words: if my node template only shows titles of those nodes.
What i need to get is something like:
1 | The title of one node
2 | The title of some other node
etc.
I was thinking of making an override of the views-view-unformatted.html.twig. There, I can work with the loop, but how can I have the index of the loop in the node templates?
Don't really think you have to override anything here. You can create a new view mode for your node, e.g. teaser and manage its display using Display Suite.
Afterwards you can select rendered entity to show in your view and the corresponding view mode.
just play with the sort criteria of your view
it is all configurable in the back-office
/admin/structure/views/view/name_of_our_view
IMHO loop in Twig is good solution, but in order to add numbers to your node titles you can change format to HTML List.
In format section choose HTML List, save, then click on Settings and choose "Ordered List"
The result should be similar to this:

Menu of structures

I'd like to have main menu in wiki part of Tiki Wiki. It should have following top-level items:
About
Atlas
Encyclopedia
Now the tricky part: I'd like to link each of above top-level menu items to corresponding structure so that hovering over Atlas opened sub-menu taken from Atlas structure.
I can make static menu like About/Atlas/Encyclopedia. I can make dynamic menu out of one structure so that top-level structure items become top-level menu items. Basically I need a menu out of structure but in such a way that it is structure's root that becomes top-level menu element. And then place three such structures horizontally.
Alternatively I could do it by nesting structures. Is it possible? And in such a way that it can be turned into nested menu?
I just stumbled over your question today and I hope my answer still can be a help for you.
Imho the right approach is to create a custom module and in the custom menu a "toplevel menu" with some simple html. The menu consists out of the three top items and for each one the appropriate structure menu as list element.
You want a horizontal menu, right?
The menu items "About", "Atlas", "Encyclopedia" representing your three wikistructures would be kind of drop down (or hover effect) horizontal css menu items level=0 (to) for example in a top-bar custom module.
You hover over one of the menu items and the associated wikistructure menu appears.
Regards,
Torsten
Well, I settled with "hybrid" solution. I have a structure like that:
Root
About
Intro
Setting
Encyclopedia
Organizations
Technology
Atlas
Inner system
Outer system
I created a "Root" page and made a Structure out of it.
Then I created first-level pages in that structure.
In next step I created those second-level pages - but as separate
pages, not part of "Root" structure.
Every such second-level entry was made a Structure and sub-pages were created in those secondary structures.
Then I added each second-level page (being a root of second-level structure) to main "Root" structure.
"Root" structure was then declared as main menu: in Manage > Modules > Assigned modules > Topbar I added "Menu" module and set structureId of "Root" structure.
So basically it's this alternative of nested structures I asked about. It does solve my problem of having tree-structure for menu that isn't overloaded by every minute page on wiki I'd like to have. On one hand it doesn't show all the entries but on the other hand it's good - the reader isn't overwhelmed and still can access deeper pages by second-level pages that have all the sub-structure listed.

Displaying one content item at two different URLs

Our navigation looks like this:
Item1 Item2 Item3
-Sub1 -Sub3 -Sub4
-Sub2 -Sub2 -Sub5
As you can see, Sub2 is repeated under Item1 and Item2.
On each page (Sub*), we have side navigation (added using Widget Layer Rules) that shows the entire navigation under the main-menu item. So, if you're on Sub1, you would see Sub1 and Sub2 on the side nav.
The problem is that we want to show the right side nav for Sub2 based on the menu item through which the user accesses the page. We could create a new Widget Layer based on the URL, but we would still need to be able to display the page at two different URLs. We don't want to replicate the page, since that wouldn't scale very well for maintaining these pages. Is there a way to display one content item at two URLs, or is this something that needs to be built custom?
If you go to the Modules page and enable the Alias UI feature, you can add aliases for routes within your application. This is probably what you are looking for.

Joomla nested ul menu

everyone! What I'm trying to do is to get Joomla! to desplay the menu items in a nested ul menu, like this:
Item
Subitem
Item2
Subitem2
Sub Subitem
currently I'm using a custom HTML for this, I've written a custom jquery script for this accordion and I'd like to use it with the Joomla's menu system. I've also downloaded Extended Menu module. Please let me know of any ideas.
P.S forgot to say that I don't want to create a dropdown menu that works on hover. My menu should slide down on .click()
You are in luck. The standard Joomla mod_mainmenu module builds menus exactly like that. You can basically take the entire module, add some IDs and classes to suit your accordion code and add in the JS to have a fully functioning menu with minimal effort. Just to be sure, I moved some menu items around on one of my demo sites. Take a look at the Resources menu here - http://www.internextion.com/
That is a basic Joomla menu module with the items nested as you illustrated.

Hierarchical navigations on SharePoint publishing sites

I've got a site structure which looks like this:
Home
Level 2
Level 3
Level 4
And I'm having problems with the left navigation showing correctly on a MOSS publishing site. When I'm on a page under Level 2 The navigation should look like this:
Level 2
Level 3
And when I get to a page under Level 3 it should look like this:
Level 2
Level 3
Level 4
But I can't seem to find a way in which the menu and data provider will do this.
How do you setup the navigation to always be starting at a fixed level but go to a depth one greater than the current depth?
you can roll your own. Get a copy of the moss menu code, override the render method in your own control and create a solution package to release your new menu as a feature.

Resources