Announcement

Collapse
No announcement yet.

Sub Sections

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

    Sub Sections

    Anyone tell me if a variable exists which lists the first subsection url within a section. So when I'm in 'section 1' I know the URL of 'subsection 1a'

    section 1
    subsection 1a (URL)
    subsection 1b

    Regards
    Sally
    Regards
    Sally

    Fashion Jewellery Wholesale - Glitzy Jewels

    #2
    Hi,

    I'm still stuck with this.

    I've found a variable 'UpALevelPageURL' which gets me from subsection1a back up to section1 but still need to find something that will take me from section1 down to subsection1a.

    Any help will be gratefully received.

    Regards
    Sally
    Regards
    Sally

    Fashion Jewellery Wholesale - Glitzy Jewels

    Comment


      #3
      The reason you've had no replies is because I don't think there is a variable that does this.

      How about explaining why you are wanting to use such a variable - maybe there are other ways to achieve the same result.

      Comment


        #4
        I don't think that there's a variable for this. However you can get it in a somewhat roundabout way. You can use a copy of the Standard Sub Section List layout. This produces a list of all child sections. Then amend this layout so that you include a Condition so that it only generates what you want when ListIndex == 1. And instead of showing Section details, just show the link to that page.

        Here's how:-

        Go to Design / Library Layouts / Sub Section Lists.
        Right-click Standard Sub Secion List and choose Copy.
        Rename that copy to be First Child Section Link.
        Double-click First Child Section Link
        Replace layout Code with
        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201" >
        <actinic:variable name="SectionLink" value="Section Name Only Section Link" />
        </actinic:block>
        Click "Click here to edit list layout settings".
        Cllck Overall Design. Delete all code in all enabled fields.
        Click Edit Rows and Columns.
        Set First Row / No of Items to Not used.
        Set Middle Rows / No of Items to 1.
        Delete everything from all other enabled fields in Middle Rows.
        Set Last Row / No of Items to Not used.
        Ok out.

        Now where you want to display this link add the Layout code
        Code:
        <actinic:variable name="SubSectionListTop" value="First Child Section Link" />
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman,

          your reply fixed my problem. Now on to the next one!

          Many thanks
          Sally
          Regards
          Sally

          Fashion Jewellery Wholesale - Glitzy Jewels

          Comment

          Working...
          X