Announcement

Collapse
No announcement yet.

Inserting the link into a Section List

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

    Inserting the link into a Section List

    Hi All,

    I am playing around with a layout in which I would like the product section and subsections showing in nested lists.

    I have the basics of the list displaying correctly. Like this in the OuterLayout...

    <ul>
    <actinic:block type="TopLevelSectionList">
    <li><a href="#"><actinic:variable name="SectionName"></a>
    <ul>
    <actinic:block type="ChildSectionList">
    <li><a href="#"><actinic:variable name="SectionName"></a></li>
    </actinic:block>
    </ul>
    </li>
    </actinic:block>
    </ul>

    But what I cant figure out at the moment is how to swap the a href="#" for the actual link to the page.....

    What am I missing??

    Any help would be much appreciated

    Cheers

    Grant

    #2
    There's a variable for the section page URL, you can either look it up in the variable list or better still look at a standard actinic layout that does this (in the design library) and use that as your basis to engineer what you want. You can be assured that things such as customer account linking is then catered for also.

    Comment


      #3
      Thanks Leehack

      When I insert

      <actinic:variable name="SectionLink" />

      instead of

      <actinic:variable name="SectionName">

      I get all sorts of other Div's and images being inserted. It takes it away from the basic unordered list I am trying to make.

      How do I edit what Actinic brings in for the variable "SectionLink" ??

      Comment


        #4
        SectionLink isn't a variable it's a selector which brings in the layout. Try Lee's suggestion check a default menu for the links you need.
        Peblaco

        Comment


          #5
          Cheers Peblaco

          OK, so I have a look in the Design Library and under Section Links / CSS Section Link Layout..

          I see the following..

          Code:
          		<div class="product_list">
          			<div class="image_product"><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>" target="_self"><img alt="<actinic:variable name="SectionName" encoding="strip"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" /></a></div>
          			<div><h3 class="product"><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>" target="_self"><actinic:variable name='SectionName'/></a></h3></div>
          			<p><actinic:variable name='SectionDescription'/></p>
          		</div>
          So, it is just the SectionURL I am after here.

          So, would I change

          Code:
          <li><a href="#"><actinic:variable name="SectionName"></a>
          to

          Code:
          <li><a href="<actinic:variable name="SectionURL" /></actinic:block>"><actinic:variable name="SectionName"></a>
          I tried that and it threw up errors.....

          Eeeek

          Comment


            #6
            Originally posted by grant View Post

            Code:
            <li><a href="<actinic:variable name="SectionURL" /></actinic:block>"><actinic:variable name="SectionName"></a>
            remove </actinic:block>

            Malcolm

            SellerDeck Accredited Partner,
            SellerDeck 2016 Extensions, and
            Custom Packages

            Comment


              #7
              Why aren't you looking at the standard top level section layouts instead of section link layouts, you are in the wrong place it seems to me.

              Comment


                #8
                Here's what an Actinic top-level section list uses:
                Code:
                <ul>
                	<actinic:block type="TopLevelSectionList" >
                		<li><a href="<actinic:variable name="SectionPageName"/>"><actinic:variable name='SectionName'/></a></li>
                	</actinic:block>
                </ul>
                So SectionPageName is your friend.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Blooming Marvelous

                  Thanks a lot ladies and gentlemen - got is sorted with the SectionPageName

                  Wonderful

                  Comment


                    #10
                    Hi Guys - revisiting this....

                    As I am trying to do the same thing with the Brochure pages list in my outerlayout.

                    I have the following so far, trying to build this using the variables from the3 Library :

                    Code:
                    <ul>
                            <actinic:variable name="BrochurePageList" value="Brochure Page Text Link List" />
                    <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Brochure%22">
                    </actinic:block>
                    </ul>
                    This works great, but it is putting a &nbsp; after each <li> like this

                    Code:
                    <ul>
                    <li>Home</li>&nbsp;
                    <li><a href="acatalog/About_Us.html">About Us</a></li>&nbsp;
                    <li><a href="acatalog/Trade.html">Trade</a></li>
                    </ul>
                    And I cant for the life of me find out where this &nbsp; is coming from...

                    Any ideas??

                    Cheers

                    G

                    Comment


                      #11
                      Check the code in the "Brochure Page Text Link List" layout, either by double clicking it or going to Design menu > Library > Brochure Page Link Lists > double click to open "Brochure Page Text Link List", then check the "Click here to edit list layout settings" both tabs there, as well as checking whatever layout you have on the line below the "Click here to edit list layout settings" (which may be under Design menu > Library > Brochure Page Links > your layout). Make sure there are either no &nbsp; or any spaces in the code.
                      Peblaco

                      Comment


                        #12
                        Originally posted by peblaco View Post
                        Check the code in the "Brochure Page Text Link List" layout, either by double clicking it or going to Design menu > Library > Brochure Page Link Lists > double click to open "Brochure Page Text Link List", then check the "Click here to edit list layout settings" both tabs there, as well as checking whatever layout you have on the line below the "Click here to edit list layout settings" (which may be under Design menu > Library > Brochure Page Links > your layout). Make sure there are either no &nbsp; or any spaces in the code.
                        Thanks Peblaco

                        It was in the "Edit Rows and Columns" bit in there - sorted

                        Comment

                        Working...
                        X