Announcement

Collapse
No announcement yet.

Hide html whenon Home page

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

    Hide html whenon Home page

    Is there a way of stopping some html lines from being using unless it is on the home page?

    eg in my layout I have some flash on the 'home/index' page. However I don't want this appearing on any of the other pages.

    I guess I surround it in a block if, but how do I test whether the index page is being displayed or not?

    #2
    You could use the variable <actinic:variable name="IsBrochureHomePage" />
    Peblaco

    Comment


      #3
      I tried:
      <actinic:block if="<actinic:variable name="IsBrochureHomePage" />">

      But it complains of coding errors. Guess I've got the syntax wrong?

      Comment


        #4
        Did you copy and paste Louise code above or did you type it in yourself?

        Often a good idea to paste any copied code into notepad before putting it into actinic.

        Army Gore-tex
        Winter Climbing Mitts
        webD's Blog: Website design, SEO and other ramblings…
        Twitter LinkedIN

        If you think a post is good, rate it!

        Find the answers in the Knowledge Base | Have you read the User Guides

        Comment


          #5
          I used the green button to surround the code in a block if, then copied the variable code in.

          Comment


            #6
            Here are two working examples.

            Home Page Only:
            Code:
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e">
            	This shows on the home page only
            </actinic:block>
            And the opposite:
            Code:
            <actinic:block if="%21%20%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" >
            	This shows on everything but the home page
            </actinic:block>
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks

              When I click the green insert block button this gets inserted:
              <actinic:block if="">

              </actinic:block>

              But I don't get any pop up into which to put the condition?

              Comment


                #8
                Switch to the basic view (click the [><] icon in the Layout Code pane).

                Then click on the block if indicator which should display in green.

                Or just copy / paste in my code from #6 above.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Aaahhh!

                  I keep getting caught out by these little editor quirks

                  Comment


                    #10
                    Hi,

                    I have the same code using IsBrochureHomePage and it works fine, but for whatever reason Actinic throws up an error. Is I publish the error goes away until I reopen Actinic again.

                    Any ideas?

                    Thanks.

                    Comment


                      #11
                      Thanks for the reply. Sorry for the slow response, I was lucky and didn't have to work with actinic for 6 months.

                      That seems to stop the error, but I am looking someway to check whether the current page is the *not* the homepage and insert an item. As I am writing this my head is telling that I am missing something obvious, but I am not able to see though the cotton wool at the moment.

                      Any ideas?

                      Thanks.

                      Comment


                        #12
                        Originally posted by McGern View Post
                        Thanks for the reply. Sorry for the slow response, I was lucky and didn't have to work with actinic for 6 months.

                        That seems to stop the error, but I am looking someway to check whether the current page is the *not* the homepage and insert an item. As I am writing this my head is telling that I am missing something obvious, but I am not able to see though the cotton wool at the moment.

                        Any ideas?

                        Thanks.
                        Did you see post 6 above?

                        Comment


                          #13
                          Thanks for the reply.

                          In my previous post (point 11) I have tried using IsBrochureHomePage, but this causing me errors (presumably on the non-brochure pages?). My template is being used site wide. If I use the condition PageType == 'Brochure' then it won't work on non-brochure pages.

                          My issue is that this actually works, but actinic is throwing errors, which is causing problems when I try to export the design to the busines version of actinic.

                          Just looking for ideas why the error is thrown in the first place as I come from a web dev background using structured, transparent CMS and ecommerce solutions and it is quite difficult to get my head using actinic.

                          Thanks.

                          Comment

                          Working...
                          X