Announcement

Collapse
No announcement yet.

Adding layout within fragment

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

    Adding layout within fragment

    Hi,

    I want to create some layouts to hold different pieces of text that can be inserted into fragments on certain pages. The idea is that it will make it easy to reuse certain paragraphs of text and I can just choose the relevant layout from a list. I tried adding some layouts and a layout selector to a new layout type. The layout selector is set so that it is chosen at fragment level. But when I try to insert the selector into the fragment layout and choose a layout to use, Actinic just reverts to the first choice in the list. It even seemed to remove the selector from the layout when I closed and reopened Actinic.

    Can anyone explain to me how to do this?

    #2
    The selector merely styles the layout - you can not insert a selector into a layout.

    You can either create various fragment layouts with the text hardcoded into the layout OR set up a User Defined Variable and then specify the recurring text at the top level and simply select for use in your layout


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Hi Jont,

      It was my understanding that the selector chooses on of the avaliable layouts, and as a layout can contain anything, what I want to do should be possible? I am not talking about CSS selectors BTW.

      What is strange is that it can be set at section level, but not at fragment level, where it always reverts to Use Parent

      Comment


        #4
        Well I think I've got it working but it seems very buggy. Actinic sometimes seems to delete the selector from its placeholder in the fragment, but at least now I can choose the layout.

        Comment


          #5
          You insert a layout into the code and chose which selector the layout is to use ... unless you set with a fixed layout (shown_with_underscores) you can not insert a selector then layout.

          The analogy from the Design Course is if you are building a house and need to add a new wall ... the wall is added by the layout and the colour of the wall is added by the selector.

          Hope that makes sense?


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            Here's a weird trick that works. Create text Variables called e.g. SNIP1, SNIP2, SNIP3, etc. Into these type your text as the Top Level value. Use !!< and >!! to surround any HTML.

            Now in your Product or Fragment description simply type [SNIP1] where you want the canned text to appear.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X