Announcement

Collapse
No announcement yet.

How do i display Top-Level Sections list on home page

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

    #16
    The Starter Guide section about BlockIf's would be worth reading.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #17
      Done this now what i did was split my section list up here http://kb.actinic.com/activekb/quest...ion+list+up%3F

      Then i added the following code into my design

      <p> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" >
      <div align="center">
      <actinic:block type="TopLevelSectionList" >

      <actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >


      <actinic:variable name="SectionLink" value="Image Above Section Link"/></actinic:block>

      </actinic:block>
      </div>
      </actinic:block>
      </p>

      Comment


        #18
        Excellent, this is exactly what I want to do.

        I've inserted the code and it's all working well EXCEPT the new section lists aren't inheriting the formatting.

        My original was Top Level Section List with Horizontal Dividers. How do I change the code given in the kb to use that?

        Code:
        <actinic:block type="TopLevelSectionList" >
           <actinic:block if="%3cactinic%3avariable%20nam%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
              <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" >
                         <actinic:variable name="SectionPageName" />
                      </actinic:block>
                      <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" >
                    <actinic:variable name="SectionURL" />
                 </actinic:block>" class="product_section">
                 <Actinic:Variable Name="SectionName"/>
              </a>
              <br />
           </actinic:block>
        </actinic:block>
        and this is the original code with the right formatting:

        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsSectionIncludedInSiteMap%22%20%2f%3e" >
           <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" >
                 <actinic:variable name="SectionPageName" />
              </actinic:block>
              <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" >
                 <actinic:variable name="SectionURL" />
              </actinic:block>" class="product_section">
              <Actinic:Variable Name="SectionName"/>
           </a>	
        </actinic:block>

        So, I pasted the first code (less the block type=TopLevelSectionList) part in and it successfully limited the sections in the original list, but left loads of blank spaces. Even if this did work, I'd have to create a second top level list, which is no hardship, but I wouldn't want all the blank spaces. I'm clearly being thick and missing something pretty basic, but could someone give me a clue? Thanks





        2. Also, the new layouts don't appear in the design tree. Is there a way to make that happen? Or will it occur automatically when the format is sorted?

        3. Finally, is it easy to strip out the UnregCustomersAreNotAllowed stuff? I may eventually have logins, but will never force customers to register.
        The Patchwork Rabbit

        Comment


          #19
          For the time being, I've hard coded everything, a la:

          Code:
                <p class="text_heading_left_column">Patterns by Designer</p>
                <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
                <actinic:block type="TopLevelSectionList" >
                   <ul class="products">
                   <actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List1%22" >
                      <li>
                      <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" >
                                  <actinic:variable name="SectionPageName" />
                               </actinic:block>
                               <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" >
                                  <actinic:variable name="SectionURL" />
                               </actinic:block>" class="product_section">
                               <Actinic:Variable Name="SectionName"/>
                      </a>
                      <br />
                      </li>
                      <div class="dotted_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
                   </actinic:block>
                   </ul>
                </actinic:block>
                <div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div>
          but this, obviously, is not ideal, as I have to copy the code for each section (currently 3), so would like to get this plugged in to actinic's default stuff, if poss Sorry for being such a newb.
          The Patchwork Rabbit

          Comment


            #20
            Karla,

            Typo in your second line of code (from first block):
            Code:
               <actinic:block if="%3cactinic%3avariable%20nam%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
            Should be
            Code:
               <actinic:block if="%3cactinic%3avariable%20name%3d%22WhichSectionList%22%20%2f%3e%20%3d%3d%20%22List%201%22" >
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #21
              Check you with your eagle eyes!

              I've already fixed that though



              I'm guessing that my code needs to be slotted in to the TopLevelSectionList variable to get it to inherit the formatting (dividing lines, bullets, etc) but I've looked all through the library and can't find it.
              The Patchwork Rabbit

              Comment


                #22
                Any advice on getting this to work through the Design Tree? The way I've done it means that the code is in the Design Wizard Outer Layer. I have no TopLevelSectionList anymore
                The Patchwork Rabbit

                Comment


                  #23
                  I don't understand what you're asking.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #24
                    LOL Ok, sorry.


                    I'm going to try one more thing to fix it myself and I'll get back to you, if still stuck.


                    Oh, the tabber plug-in works a treat and is really easy to use. I've even changed the colours of the images so that it fits my design. Not published yet, but I'm having fun with it.
                    The Patchwork Rabbit

                    Comment

                    Working...
                    X