Announcement

Collapse
No announcement yet.

BlockIf Question...

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

    BlockIf Question...

    As im still new to Actinic, I have a quick query.

    Ive just added some HTML5 / Javascript to my site, and since this it is crashing actinic, i believe that i would need to use a Block If to stop this from happening?

    The code ive entered is for a live feed from facebook, see below;

    Code:
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    Can anyone help me to get around the crashing of actinic?

    #2
    Try surrounding with blockif

    <actinic:variable name="IsPreviewMode" /> == false
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Daft question but ive never used blockif before.

      Do i use <block if> tags?

      Comment


        #4
        Try the following:

        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPreviewMode%22%20%2f%3e%20%3d%3d%20false" >
            
           <facebook code in here>  
        
        </actinic:block>
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          Gabe did some tutorials on them, try the tutorial thread to learn some really clever stuff.

          Comment


            #6
            try this

            Highlight the facebook header code that you put in your layout.
            Right click and Insert block
            In the condition Editor click on the green button with + on
            scroll down the list until you see IsNotPreviewMode
            Select insert
            Select Ok in the condition editor.
            Your code will now have the block if around it.

            This fix worked for me. I did not have to put the block around the actual html for the facebook button.
            Hope this helps.

            Comment

            Working...
            X