Announcement

Collapse
No announcement yet.

Import Navigation Items for navigation_all-categories

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scot - ScotsScripts.com
    replied
    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.

    Leave a comment:


  • William Davis
    replied
    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.
    I had missed this suggestion, Nick just made the same suggestion (Post: Please find a simple solution to update/sync category menus between RT and Admin ASAP). I guess no one has gotten the "industrious" feeling over Shadows RT -don't know what to make of that?

    Leave a comment:


  • Scot - ScotsScripts.com
    replied
    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:


  • William Davis
    replied
    Originally posted by Scot - ScotsScripts.com View Post
    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.
    How would hidden categories and availability groups be affected. Would the module detect that so it would match dynamic display?

    Leave a comment:


  • Scot - ScotsScripts.com
    replied
    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:


  • Bruce - PhosphorMedia
    replied
    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:


  • William Davis
    replied
    Originally posted by Bruce - PhosphorMedia View Post
    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.
    Bruce, do you still have this solution available? It beats having to develop one from scratch.

    Leave a comment:


  • pmlvalerie
    replied
    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:


  • Matt Zimmermann
    replied
    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>

    Leave a comment:


  • pmlvalerie
    replied
    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
    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
    I appreciate all the help!
    Valerie

    Leave a comment:


  • William Davis
    replied
    Originally posted by Bruce - PhosphorMedia View Post
    Wow, I had no idea this existed. Had I known that it could have saved all of us a lot of headaches.

    Leave a comment:


  • Matt Zimmermann
    replied
    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>

    Leave a comment:


  • pmlvalerie
    replied
    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:


  • Matt Zimmermann
    replied
    In your XML file, you should be able to replace NavigationSet_Add with NavigationSet_Update.

    Leave a comment:


  • Bruce - PhosphorMedia
    replied
    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:

Working...
X