Announcement

Collapse
No announcement yet.

Category Tree links

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

    #16
    Originally posted by afiumano View Post
    Yes, below is what they removed from mine:

    <IfModule mod_expires.c>
    # Enable expirations
    ExpiresActive On
    # Default directive
    ExpiresDefault "access plus 1 month"
    # My favicon
    ExpiresByType image/x-icon "access plus 1 year"
    # Images
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    # CSS
    ExpiresByType text/css "access plus 1 month"
    # Javascript
    ExpiresByType application/javascript "access plus 1 year"
    </IfModule>
    Thanks - I've commented it out. Let's see if it goes away from me too. Might be another one of those things that will need to be added to the installation docs
    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


      #17
      Were the dev sites fresh stores or copies of an existing site with a previous installed ReadyTheme?
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment


        #18
        Originally posted by Matt Zimmermann View Post
        Were the dev sites fresh stores or copies of an existing site with a previous installed ReadyTheme?
        In my case, not a fresh install, the site had Levels as the most recent ReadyTheme.
        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


          #19
          Hi Leslie,

          Colossus does not ship with an htaccess file so it is possible that the one you had, was copied over from the live site when the dev was made.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment


            #20
            Originally posted by Matt Zimmermann View Post
            Hi Leslie,

            Colossus does not ship with an htaccess file so it is possible that the one you had, was copied over from the live site when the dev was made.
            Yes, I am aware of this...but there may be others out there that are not. In my case, commenting out the above mention lines didn't help. I discovered that using the Refresh button on the User Interface Pages screen seems to clear the issue. Unfortunately, I'm having to use the "trick" every time I visit the page. Clear my cache every time I need to access this screen doesn't seem like a viable option either (at least for me).


            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


              #21
              Hi Leslie,

              Have you tried removing the htaccess file and letting Miva create a new one via URI Management?
              Matt Zimmermann

              Miva Web Developer
              Alchemy Web Development
              https://www.alchemywebdev.com
              Site Development - Maintenance - Consultation

              Miva Certified Developer
              Miva Professional Developer

              https://www.dev4web.net | Twitter

              Comment


                #22
                Another issue is that the category tree is showing an 'inactive' category. That is probably a glitch correct? How do we fix that?

                Comment


                  #23
                  afiumano It looks like I was using the incorrect reference when pulling the categories. The code should include the Runtime_ prefix so it would respect the active flag as well as availability groups. Here is the updated User Interface -> Settings -> Category Tree Template code you can use to correct the issue:
                  Code:
                  <nav class="x-accordion-category-tree t-accordion-category-tree">
                      <mvt:comment>
                          <!-- Check if the current, parent category has any children. -->
                      </mvt:comment>
                      <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_Category_Load_Code(l.settings:breadcrumbs:links[1]:code, l.settings:current_parent)"/>
                      <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_Parent(l.settings:current_parent:id, l.settings:children)"/>
                      <mvt:if expr="l.settings:children GT 0">
                          <mvt:comment>
                              <!--
                              If the parent category has children, show all child and grandchild categories in an accordion navigation.
                              -->
                          </mvt:comment>
                          <ul class="x-accordion-category-tree__row">
                              <mvt:foreach iterator="child" array="children">
                                  <mvt:assign name="l.uri:store_id" value="g.Store:id"/>
                                  <mvt:assign name="l.uri:cat_id" value="l.settings:child:id"/>
                                  <mvt:assign name="l.settings:grandchildren" value="0"/>
                                  <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_Category_Load_Code(l.settings:child:code, l.settings:current_child)"/>
                                  <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_Parent(l.settings:current_child:id, l.settings:grandchildren)"/>
                                  <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical(l.uri, l.settings:child:link)"/>
                                  <mvt:foreach iterator="grandchild" array="grandchildren">
                                      <mvt:if expr="l.settings:grandchild:code EQ l.settings:breadcrumbs:current_item:code">
                                          <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_Category_Load_ID(l.settings:grandchild:parent_id, l.settings:parent_category)" />
                                      </mvt:if>
                                  </mvt:foreach>
                                  <mvt:if expr="(l.settings:child:code EQ l.settings:breadcrumbs:current_item:code) OR (l.settings:child:code EQ l.settings:parent_category:code)">
                                      <mvt:assign name="l.settings:current:active" value="'is-active'"/>
                                      <mvt:assign name="l.settings:current:child" value="'x-accordion-category-tree__link--current'"/>
                                  <mvt:else>
                                      <mvt:assign name="l.settings:current:active" value="''"/>
                                      <mvt:assign name="l.settings:current:child" value="''"/>
                                  </mvt:if>
                                  <li class="x-accordion-category-tree__list x-accordion-category-tree__list--level-1 &mvte:current:active;">
                                      <div class="x-accordion-category-tree__summary">
                                          <a class="x-accordion-category-tree__link &mvte:current:child; u-text-medium" href="&mvte:child:link:uri;">&mvte:child:name;</a>
                                          <mvt:if expr="l.settings:grandchildren GT 0">
                                              <button class="x-accordion-category-tree__toggle c-button u-bg-transparent u-font-tiny" data-hook="accordion-toggle" type="button" aria-label="View More &mvte:child:name;"><span class="u-icon-add"></span></button>
                                          </mvt:if>
                                      </div>
                                      <mvt:if expr="l.settings:grandchildren GT 0">
                                          <ul class="x-accordion-category-tree__row x-accordion-category-tree__details">
                                              <mvt:foreach iterator="grandchild" array="grandchildren">
                                                  <mvt:assign name="l.uri:store_id" value="g.Store:id"/>
                                                  <mvt:assign name="l.uri:cat_id" value="l.settings:grandchild:id"/>
                                                  <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical(l.uri, l.settings:grandchild:link)"/>
                                                  <mvt:if expr="l.settings:grandchild:code EQ l.settings:breadcrumbs:current_item:code">
                                                      <mvt:assign name="l.settings:current:grandchild" value="'x-accordion-category-tree__link--current'"/>
                                                  <mvt:else>
                                                      <mvt:assign name="l.settings:current:grandchild" value="''"/>
                                                  </mvt:if>
                                                  <li class="x-accordion-category-tree__list x-accordion-category-tree__list--level-2">
                                                      <a class="x-accordion-category-tree__link &mvte:current:grandchild;" href="&mvte:grandchild:link:uri;">&mvte:grandchild:name;</a>
                                                  </li>
                                              </mvt:foreach>
                                          </ul>
                                      </mvt:if>
                                  </li>
                              </mvt:foreach>
                          </ul>
                      <mvt:else>
                          <mvt:comment>
                              <!--
                              If the parent category does not have children, show all parent and, applicable,
                              child categories in an accordion navigation.
                              -->
                          </mvt:comment>
                          <ul class="x-accordion-category-tree__row">
                              <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_Parent('', l.settings:parent_categories)" />
                              <mvt:foreach iterator="parent" array="parent_categories">
                                  <mvt:assign name="l.uri:store_id" value="g.Store:id"/>
                                  <mvt:assign name="l.uri:cat_id" value="l.settings:parent:id"/>
                                  <mvt:assign name="l.settings:children" value="0"/>
                                  <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_Category_Load_Code(l.settings:parent:code, l.settings:current_parent)"/>
                                  <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_CategoryList_Load_Parent(l.settings:current_parent:id, l.settings:children)"/>
                                  <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical(l.uri, l.settings:parent:link)"/>
                                  <mvt:foreach iterator="child" array="children">
                                      <mvt:if expr="l.settings:child:code EQ l.settings:breadcrumbs:current_item:code">
                                          <mvt:do name="l.result" file="g.Module_Library_DB" value="Runtime_Category_Load_ID(l.settings:child:parent_id, l.settings:parent_category)" />
                                      </mvt:if>
                                  </mvt:foreach>
                                  <mvt:if expr="(l.settings:parent:code EQ l.settings:breadcrumbs:current_item:code) OR (l.settings:parent:code EQ l.settings:parent_category:code)">
                                      <mvt:assign name="l.settings:current:active" value="'is-active'"/>
                                      <mvt:assign name="l.settings:current:parent" value="'x-accordion-category-tree__link--current'"/>
                                  <mvt:else>
                                      <mvt:assign name="l.settings:current:active" value="''"/>
                                      <mvt:assign name="l.settings:current:parent" value="''"/>
                                  </mvt:if>
                                  <li class="x-accordion-category-tree__list x-accordion-category-tree__list--level-1 &mvte:current:active;">
                                      <div class="x-accordion-category-tree__summary">
                                          <a class="x-accordion-category-tree__link &mvte:current:parent; u-text-medium" href="&mvte:parent:link:uri;">&mvte:parent:name;</a>
                                          <mvt:if expr="l.settings:children GT 0">
                                              <button class="x-accordion-category-tree__toggle c-button u-bg-transparent u-font-tiny" data-hook="accordion-toggle" type="button" aria-label="View More &mvte:parent:name;"><span class="u-icon-add"></span></button>
                                          </mvt:if>
                                      </div>
                                      <mvt:if expr="l.settings:children GT 0">
                                          <ul class="x-accordion-category-tree__row x-accordion-category-tree__details">
                                              <mvt:foreach iterator="child" array="children">
                                                  <mvt:assign name="l.uri:store_id" value="g.Store:id"/>
                                                  <mvt:assign name="l.uri:cat_id" value="l.settings:child:id"/>
                                                  <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical(l.uri, l.settings:child:link)"/>
                                                  <mvt:if expr="l.settings:child:code EQ l.settings:breadcrumbs:current_item:code">
                                                      <mvt:assign name="l.settings:current:child" value="'x-accordion-category-tree__link--current'"/>
                                                  <mvt:else>
                                                      <mvt:assign name="l.settings:current:child" value="''"/>
                                                  </mvt:if>
                                                  <li class="x-accordion-category-tree__list x-accordion-category-tree__list--level-2">
                                                      <a class="x-accordion-category-tree__link &mvte:current:child;" href="&mvte:child:link:uri;">&mvte:child:name;</a>
                                                  </li>
                                              </mvt:foreach>
                                          </ul>
                                      </mvt:if>
                                  </li>
                              </mvt:foreach>
                          </ul>
                      </mvt:if>
                  </nav>
                  <!-- end .x-accordion-category-tree -->
                  Matt Zimmermann

                  Miva Web Developer
                  Alchemy Web Development
                  https://www.alchemywebdev.com
                  Site Development - Maintenance - Consultation

                  Miva Certified Developer
                  Miva Professional Developer

                  https://www.dev4web.net | Twitter

                  Comment


                    #24
                    Thanks - that fixed it.

                    Comment

                    Working...
                    X