Announcement

Collapse
No announcement yet.

Emporium Plus "mytree" - List ALL Categories on one page?

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

    Emporium Plus "mytree" - List ALL Categories on one page?

    Does anyone know how to list all Parent & child categories onto one page? The customers want "product catalog" page where all categories are listed. (Sort of like a site map.)

    I have this....
    <mvt:foreach iterator="child" array="children">
    <td align="left" valign="bottom" nowrap>
    <mvt:item name="fonts" param="body_font">
    <a href="&mvt:global:sessionurl;Screen=CTGY&Store_Cod e=&mvta:store:code;&Category_Code=&mvta:child:code ;">
    <u>&mvt:child:name;</u></a>
    </mvt:item>
    </td>
    <mvt:if expr = "(pos1 MOD 3 ) EQ 0">
    </tr> <tr>
    </mvt:if>
    </mvt:foreach>
    </tr></table>


    But that displays the child categories for the current category only.

    Thanks

    #2
    Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

    You don't even need a category tree module for that. You can simply hard code the tree and replace the built in tree with the static menu. In addition to not needing a module, there is an added benefit that it will run faster than a dynamic menu. That said, you could use the tree module to hold the static menu.
    Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
    Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
    Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
    Facebook http://www.facebook.com/EmporiumPlus
    Twitter http://twitter.com/emporiumplus

    Comment


      #3
      Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

      A static menu would not allow the owner to make category changes on their own though.

      Comment


        #4
        Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

        It is as easy as adding a line to the static tree. Opening all of the parents to show all of the subcats is a bit of processing you would not want to occur on every page. Hence, that feature is not in the module. Using a static menu would be considerably faster and less intense on resources.
        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
        Facebook http://www.facebook.com/EmporiumPlus
        Twitter http://twitter.com/emporiumplus

        Comment


          #5
          Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

          Sebenza's Category Tree Template and Category Template Manager allows for this type of functionality. It takes some custom store morph coding, but the arrays and variables are there.

          Comment


            #6
            Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

            Would the Category Template Manager be needed for a new screen? Sounds like that is what is trying to be done here. Create a new screen and plop the cat tree token wherever they want it to display but be able to keep it open just for that screen.

            But you're right Dan - a module would be needed just to keep the tree open for that screen.
            Leslie
            www.lesliekirk.com | Twitter | Facebook
            Past Web Production Manager for eMediaSales
            Previously of www.websyourway.com
            Forum Moderator lesliekirk
            Miva Merchant and more ... since 1997

            Comment


              #7
              Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

              Would the Category Template Manager be needed for a new screen? Sounds like that is what is trying to be done here. Create a new screen and plop the cat tree token wherever they want it to display but be able to keep it open just for that screen.

              But you're right Dan - a module would be needed just to keep the tree open for that screen.
              It's there, it is just not an advertised feature of the Category Tree Template. You can call the category tree into a specific page template in the "open" state and Scott has made available the appropriate arrays to display the parent category and all of it's sub categories in a nice one, two or three column display.

              Comment


                #8
                Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                Yes, but do you have to have the Category Template Manager? It sounds like this could be handled using just the Category Tree Template and place the unadvertised code (which is very cool by the way) into a newly created screen.
                Leslie
                www.lesliekirk.com | Twitter | Facebook
                Past Web Production Manager for eMediaSales
                Previously of www.websyourway.com
                Forum Moderator lesliekirk
                Miva Merchant and more ... since 1997

                Comment


                  #9
                  Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                  No, the Category Template Manager would not be required. I have used this for parent/sub-cateory displays on the storefront page with excellent results.

                  Comment


                    #10
                    Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                    Code:
                    <table border="0" width="100%">
                    <tr>
                    <mvt:foreach iterator="cat" array="catlisting">
                    <td width="auto" align="left" valign="middle"><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cat:code;"><img src="&mvt:cat:image;" alt="" align="middle" border="0"></a></td>
                    <td width="50%" align="left" valign="middle"><b><a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:cat:code;">&mvt:cat:name;</a></b><br />
                    <mvt:foreach iterator="sub" array="cat:subcat">
                    <a href="&mvt:global:sessionurl;Screen=CTGY&Store_Code=&mvta:store:code;&Category_Code=&mvta:sub:code;">&mvt:sub:name;</a>&nbsp;
                    </mvt:foreach>
                    </td>
                    <mvt:if expr = "(pos1 MOD 2 ) EQ 0">
                    </tr><tr></mvt:if></mvt:foreach>
                    </table>

                    Comment


                      #11
                      Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                      Yes, this is for a single page only. The remaining site shows the parents on the side menu & the children as part of the category header. Along with the trail. This site has 9 children and I feel it's a bit cumbersome to have on each page.

                      Now I am a little confused. This "catlisting" is this part of MIVA's default category_tree or part of the Sebenza's managers? I have tried plopping the above code into the page I would like and it does not show up on the site. I had made sure both "mytree" and "cateogry_tree" are active.

                      Comment


                        #12
                        Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                        I think the thread diverged a bit. Your original post is you want something like this, right?

                        Parent 1
                        Sub 1
                        Subsub 1
                        Subsub 2
                        Subsubsub 1
                        Subsubsub 2
                        Sub 2
                        Subsub 1
                        Subsub 2
                        Sub 3
                        Parent 2
                        Sub 1
                        Subsub 1
                        Subsub 2
                        Subsubsub 1
                        Subsub 3
                        Sub 2
                        Parent 3
                        and so on.

                        If that is what you are trying to do, the mytree module will not do that. It was deemed too processor intensive. It can be much more efficiently done with a static menu.
                        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                        Facebook http://www.facebook.com/EmporiumPlus
                        Twitter http://twitter.com/emporiumplus

                        Comment


                          #13
                          Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                          Yes, this is for a single page only.
                          Is this what you are referring to? This was done with the latest Emporium Plus Tool Kit.

                          http://www.pinemporium.com/mm5/merch...Screen=SITEMAP
                          Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                          Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                          Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                          Facebook http://www.facebook.com/EmporiumPlus
                          Twitter http://twitter.com/emporiumplus

                          Comment


                            #14
                            Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                            Yes, this is for a single page only. The remaining site shows the parents on the side menu & the children as part of the category header. Along with the trail. This site has 9 children and I feel it's a bit cumbersome to have on each page.

                            Now I am a little confused. This "catlisting" is this part of MIVA's default category_tree or part of the Sebenza's managers? I have tried plopping the above code into the page I would like and it does not show up on the site. I had made sure both "mytree" and "cateogry_tree" are active.
                            This would be using Sebenza's Category Tree Template instead of MyTree from Emporium Plus. (the code provided must be used in conjuntion with the Sebenza module)

                            I think the thread diverged a bit.
                            I don't think this thread has diverged at all. Bill, you are saying your module will not do it, so I am providing an alternative that will. Sebenza's category tree template allows for "open" status, displaying all the categories and sub-catories at once. (on a page by page basis) And there are some additional arrays/variables available that will display categories and subcategories wherever you want on the page.

                            firstglimpse, feel free to shoot me an email off list and I will go over your options for setting this up.

                            Comment


                              #15
                              Re: Emporium Plus &quot;mytree&quot; - List ALL Categories on one page?

                              The sitemap link was exactly what I was looking for. I do not think I will get approval to purchase another kit though, so I have decided to keep with the parent listing. There are so many children I believe it could be overwhelming to a visitor anyway.

                              But now I'm very interesting in the <mvt:foreach iterator="cat" array="catlisting"> code for future sites.


                              If I understand correctly it's part of MIVA's default category_tree? The code provided is not showing up, so I wanted to make sure it is for the standard category_tree before I spend too much time on it.

                              Thanks

                              Comment

                              Working...
                              X