Announcement

Collapse
No announcement yet.

Using Fragments to contain code...

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

    Using Fragments to contain code...

    Does it make any odds or effect performance of a site if i use fragments to contain coding rather than putting it in to the design tab?

    The reason being as that i couldnt get something where i wanted it, so i used a fragment and placed some code in to it, like here;

    !!<<div class="fb-like-box" data-href="http://www.facebook.com/pages/Roofing-Warehouse/398921440133760" data-width="675" data-height="450" data-show-faces="false" data-stream="true" data-header="true"></div>>!!

    #2
    It won't hurt.

    If you intend to put this into several places on the site, then you could copy an existing Fragment Layout, edit that copy and paste your code in to replace all that was there.

    Now you can insert a dummy Fragment using that layout when you want the code to be included.

    If that 398921440133760 bit is unique per Fragment, then use it as the Fragment Name and tweak the code above to use <actinic:variable name="FragmentTitle" /> to insert it.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Excellent. Thanks again Norm!

      Comment

      Working...
      X