Announcement
Collapse
No announcement yet.
Import Navigation Items for navigation_all-categories
Collapse
X
-
I think a year back or so I did exactly that. We used the basic miva category structure and created their primary menu. Feel free to contact me on my site if you want to discuss making this happen in your store.
-
Scot - ScotsScripts.com
The cat tree template takes the current category structure and displays it. I would imagine it handles availability groups and hidden/inactive categories as well. So if someone was industrious, they could create a nav menu in a theme content item that is based on the code in the category tree template and then instead of using a nav set for the navbar, use the content item.
Leave a comment:
-
Basically the module would make a navigation set based on your current category structure (active categories only) so you wouldn't have to do it manually. As far as displaying, you would create a template for the nav set to display them however you want. It would be good to have a list of things you'd want the nav template to do (or not do) so I could take that into account while developing the module because I'd be making a nav template to go along with it for testing.
Something that hasn't been mentioned here is that the category tree template does what everyone here wants.
The cat tree template takes the current category structure and displays it. I would imagine it handles availability groups and hidden/inactive categories as well. So if someone was industrious, they could create a nav menu in a theme content item that is based on the code in the category tree template and then instead of using a nav set for the navbar, use the content item.
Leave a comment:
-
Originally posted by Scot - ScotsScripts.com View PostI think I could make a module for this, one button populate a nav set based on your category structure. I would need one or more interested parties to pay for the dev time involved which I would cap at 4hrs if it went over. Anyone pitching in would get a license for the module when it was done. I'm super busy this coming week but I could definitely have it ready the week after.
Leave a comment:
-
I think I could make a module for this, one button populate a nav set based on your category structure. I would need one or more interested parties to pay for the dev time involved which I would cap at 4hrs if it went over. Anyone pitching in would get a license for the module when it was done. I'm super busy this coming week but I could definitely have it ready the week after.
Leave a comment:
-
Well, its not something you have "laying around" because its exact implementtion is specific to the ReadyTheme / Custom CSS used on the site. Most any developer should be able to do this for in a relatively quick time frame. I unfortunetly, don't really have time to do this personally.
Leave a comment:
-
Originally posted by Bruce - PhosphorMedia View PostIf you have a navigation system that needs to be relatively dynamic (i.e., you add, remove items on a daily or weekly basis) I'd contact a developer to have them build a 'automatic' system. Basically, what they would do is replace the 'readytheme' element with a script to pre-build the navigation links (and save them to a managed template) on a scheduled or 'triggered' basis. (We usually just tie the trigger to the IP or customer account of the store owner or staff. That way, the menu gets rebuilt on every page load for them, but customers see a 'saved' version.
Leave a comment:
-
Matt Zimmermann
I added a "-" between Drop and Down for the <Layout> and it worked without error. Yay!
However, navigation is now GONE. Instead it says "Main Navigation Updated". Booooooo.
I've tried a couple things but don't know how to get it back. XML sounded like such a good idea a few days ago...
I'd recommend anyone trying this be very, very careful!
Leave a comment:
-
Hi Valerie,
It looks like I was missing the update code in my previous example. Try this one:
Code:<Module code="readytheme" feature="util"> <NavigationSet_Update code="primary_navigation"> <Code>primary_navigation</Code> <Name>Primary Site Navigation Bar</Name> <Description>Main Navigation</Description> <Layout>Horizontal DropDown</Layout> <Template><![CDATA[Main Navigation Updated]]></Template> <Notes>Main Navigation Updated</Notes> <Items> <Item> <Active>true</Active> <Name>Transmission Pans</Name> <SubItems> <Item> <Active>true</Active> <Name>Ford</Name> <Link type="Category">FORD_TRANSMISSION_PAN_CATEGORY_CODE</Link> </Item> <Item> <Active>true</Active> <Name>GM</Name> <Link type="Category">GM_TRANSMISSION_PAN_CATEGORY_CODE</Link> </Item> </SubItems> </Item> </Items> </NavigationSet_Update> </Module>
- 1 like
Leave a comment:
-
Matt Zimmermann
Thanks! Unfortunately, I must be doing something else wrong. Same error, missing required attribute code on line 2.
Date/Time Line # Log Message I appreciate all the help!5-22-2019 14:51:03 Import of test_pan_miva_orig.xml started 5-22-2019 14:51:03 2 NavigationSet_Update: Missing required attribute code 5-22-2019 14:51:03 Import of test_pan_miva_orig.xml complete
Valerie
Leave a comment:
-
Originally posted by Bruce - PhosphorMedia View Post
Leave a comment:
-
Hi Valerie,
I looks like you are missing the link value:
Code:<Module code="readytheme" feature="component"> <NavigationSet_Update> <Code>primary_navigation</Code> <Name>Primary Site Navigation Bar</Name> <Description>Main Navigation</Description> <Layout>Horizontal DropDown</Layout> <Items> <Item> <Active>true</Active> <Name>Transmission Pans</Name> <SubItems> <Item> <Active>true</Active> <Name>Ford</Name> <Link type="Category">FORD_TRANSMISSION_PAN_CATEGORY_CODE</Link> </Item> <Item> <Active>true</Active> <Name>GM</Name> <Link type="Category">GM_TRANSMISSION_PAN_CATEGORY_CODE</Link> </Item> </SubItems> </Item> </Items> </NavigationSet_Update> </Module>
- 1 like
Leave a comment:
-
Thank you for the quick response!
I couldn't find any documentation on this so I've been trying various possibilities. I am getting the error message "missing required attribute code" on line 2. Here is my XML:
<Module code="readytheme" feature="component">
<NavigationSet_Update>
<Code>primary_navigation</Code>
<Name>Primary Site Navigation Bar</Name>
<Layout>Horizontal Drop-Down</Layout>
<Items>
<Item>
<Active>true</Active>
<Name>Transmission Pans</Name>
<SubItems>
<Item>
<Active>true</Active>
<Name>Ford</Name>
</Item>
<Item>
<Active>true</Active>
<Name>GM</Name>
</Item>
</SubItems>
</Item>
</Items>
</NavigationSet_Update>
</Module>
The domain is pmlproducts.com.
Any suggestions would be greatly appreciated!
Valerie
Leave a comment:
-
In your XML file, you should be able to replace NavigationSet_Add with NavigationSet_Update.
- 1 like
Leave a comment:
-
If you have a navigation system that needs to be relatively dynamic (i.e., you add, remove items on a daily or weekly basis) I'd contact a developer to have them build a 'automatic' system. Basically, what they would do is replace the 'readytheme' element with a script to pre-build the navigation links (and save them to a managed template) on a scheduled or 'triggered' basis. (We usually just tie the trigger to the IP or customer account of the store owner or staff. That way, the menu gets rebuilt on every page load for them, but customers see a 'saved' version.
Leave a comment:
Leave a comment: