Announcement

Collapse
No announcement yet.

Sub-sections defaulted to same image as the parent section

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

    Sub-sections defaulted to same image as the parent section

    Hi!

    As the title says; all my sub-sections have an image that has defauted to be the same image as is set for the parent section, even though:

    - there is no image specified in the sub-section properties and;
    - the default image is set to be a large bullet point in "Site Options > General > Section > Default section image"

    Any ideas why?

    Thanks.

    #2
    Hello Maff

    Just to understand this a bit more, you have specified a bullet image as the section image in Site Options, i.e at the Site level, and the sub-sections do not have images of their own.
    As per the default behaviour, if no image has been specified at the section or sub-section level it will assume the default image value specified at the Site level.
    Please let me know if Actinic has not recognised the individual section images if they have been specified or whether you do not wish the sub-sections to inherit the parent image.
    Krithika Chandrasekar
    SellerDeck

    sigpic

    E-commerce software by SellerDeck

    Comment


      #3
      Hi

      That's right. I have a small bullet specified in site options. For my main sections I have specified their own images. For the Sub-sections I want them to just have the bullet and have, therefore, not entered any image in the sub-section design.

      However, the subsecion is inheriting the image of the container section. See the site here

      Thanks.

      Comment


        #4
        Ahh, now I see what you mean, Maff. Since the sub-sections are inheriting their properties from their parent sections, and they have no images explicitly specified for them, they are displaying the parent images. I'll check through quickly to see how you can get around this and post back here.
        Krithika Chandrasekar
        SellerDeck

        sigpic

        E-commerce software by SellerDeck

        Comment


          #5
          Hello

          If you do not intend using any images for your sub-sections at all, then please try the following workaround :

          This workaround should help to over-ride the default behaviour. I tried it on my default site and it worked.

          1. Go to Design | Library | Variables. Right click on the group Site and select New Variable. Call it Default Image, for eg.

          2. Enter any text into Description and Prompt. Under Place of Setting, choose Site and in Type, choose Filename. Under Tab, choose Layouts, so it will be easier to locate.

          3. Tick Allow Empty Value. Click OK and close the main window.

          4. Now go to Settings | Site Options | Layouts. Ideally the Default Image should be the second field. Browse and select theme_section_image.gif.

          5. Switch to the Design tab. In the Content tree on the left, highlight a parent section, for eg, Groceries. In the preview pane, click on any of the sub-sections, you should get the Section Link Layout in the Layout tab below.

          6. Find the line :
          <img alt="<actinic:variable name="SectionName"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
          Replace this with :

          <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevelIsGreaterThan1%22%20%2f%3e" >
          <img alt="<actinic:variable name="SectionName"/>" src="<actinic:variable name="Default Image" />" border="0" />
          </actinic:block>

          <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%20%3d%3d%20%201">
          <img alt="<actinic:variable name="SectionName"/>" src="<actinic:variable Name="SectionImageFileName"/>" border="0" />
          </actinic:block>
          7. Click Apply and preview, you should now see the parent sections using their individual images and their child sections using the default ones

          Let me know how you get on.
          Krithika Chandrasekar
          SellerDeck

          sigpic

          E-commerce software by SellerDeck

          Comment

          Working...
          X