Announcement

Collapse
No announcement yet.

Any way to sync category tree with a navigation set?

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

    Any way to sync category tree with a navigation set?

    Is there any way to synchronize category tree with a navigation set?

    We have over 250 categories, and we a great disparity between the two, I hope there is a solution by now.
    Last edited by William Davis; 05-28-22, 02:22 PM.
    Thank you, Bill Davis

    #2
    There's a scheduled task named "Update Navigation Set Item URLs," but I'm not sure exactly what it does. It's mentioned briefly in a couple of other forum threads:

    https://www.miva.com/forums/forum/de...et-broken-link

    https://www.miva.com/forums/forum/on...ter-m10-update

    There doesn't seem to be any documentation on this task. The readytheme module isn't included in the LSK.
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      Originally posted by Kent Multer View Post
      There's a scheduled task named "Update Navigation Set Item URLs," but I'm not sure exactly what it does. It's mentioned briefly in a couple of other forum threads:

      https://www.miva.com/forums/forum/de...et-broken-link

      https://www.miva.com/forums/forum/on...ter-m10-update

      There doesn't seem to be any documentation on this task. The readytheme module isn't included in the LSK.
      Thanks Kent, tried it but it did not work, will open a ticket.
      Thank you, Bill Davis

      Comment


        #4
        The Update Navigation Set Item URLs was a feature added in 9.13 to pre-calculate the URLs to each destination item ahead of time as a scheduled task rather than dynamically when the navigation set it loaded. For example if you have a nav item that is a link to a category Miva will load and save the URL for that category with the navigation set vs looking it up dynamically.

        Can you provide some more context on why you want to have a navigation set and category tree synced? If that is the case, couldn't you just use your category tree as the navigation?
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Originally posted by Brennan View Post
          The Update Navigation Set Item URLs was a feature added in 9.13 to pre-calculate the URLs to each destination item ahead of time as a scheduled task rather than dynamically when the navigation set it loaded. For example if you have a nav item that is a link to a category Miva will load and save the URL for that category with the navigation set vs looking it up dynamically.

          Can you provide some more context on why you want to have a navigation set and category tree synced? If that is the case, couldn't you just use your category tree as the navigation?
          Can the category tree code be used in a Theme Component Navigation set?
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            You could in theory output the category tree item from the Navigation Set item but you won't have the ability to add new items to the navigation set. It would all be controlled from the category tree.
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              This is an idea that I've been thinking about for a while. Bill, how would you like a category-synch module to work? What features and functions would you need?

              My basic idea is a module that lets you link navigation set "X" to category "Y." After that, any time you make changes to Y, or to any of its sub-categories, the module will automatically make equivalent changes to X.

              Anyone else have thoughts on this?

              Thanks --
              Kent Multer
              Magic Metal Productions
              http://TheMagicM.com
              * Web developer/designer
              * E-commerce and Miva
              * Author, The Official Miva Web Scripting Book -- available on-line:
              http://www.amazon.com/exec/obidos/IS...icmetalproducA

              Comment


                #8
                Originally posted by Kent Multer View Post
                This is an idea that I've been thinking about for a while. Bill, how would you like a category-synch module to work? What features and functions would you need?

                My basic idea is a module that lets you link navigation set "X" to category "Y." After that, any time you make changes to Y, or to any of its sub-categories, the module will automatically make equivalent changes to X.

                Anyone else have thoughts on this?

                Thanks --
                That is the native solution I was hoping for by now or something similar. The thought of having to manually maintain the same data values in two separate places on the same system, does not seem at all practical from any perspective.

                It would be ideal that any changes made to Admin dynamic category tree, would present an option to update corresponding static navigation set. At the very least present a reminder to manually update same via some type of synchronization Task.

                Kent Multer, how complicated is a third-party solution to address this issue?
                Thank you, Bill Davis

                Comment


                  #9
                  It's not a trivial project. But I already wrote something similar for another client, so I have some code I can copy and paste. That will speed up the project.
                  Kent Multer
                  Magic Metal Productions
                  http://TheMagicM.com
                  * Web developer/designer
                  * E-commerce and Miva
                  * Author, The Official Miva Web Scripting Book -- available on-line:
                  http://www.amazon.com/exec/obidos/IS...icmetalproducA

                  Comment


                    #10
                    Originally posted by Kent Multer View Post
                    It's not a trivial project. But I already wrote something similar for another client, so I have some code I can copy and paste. That will speed up the project.
                    I was afraid of that.
                    Thank you, Bill Davis

                    Comment

                    Working...
                    X