Announcement

Collapse
No announcement yet.

Hiding text links

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

    Hiding text links

    I have a number of horizontal navigation text links at the top of my page. Using the Smart theme in v8.2.

    However I do not want to display some of them yet still publish the brochure pages to which they link. This is because I want visitors to register using email before they can have access to these pages.

    Any ideas on how these links can be hidden?

    Thanks
    Richard Hodgson
    Fantasy
    www.whatsyourfantasy.co.uk

    #2
    Put a Condition around these links. E.g.
    Replace layout Text Brochure Page Link which usually is
    Code:
    <span class="actxxsmall">[</span> <actinic:block if="%3cactinic%3avariable%20name%3d%22OuterBrochurePageID%22%20%2f%3e%20%21%3d%20%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e"><a href="<actinic:variable name="BrochurePageURL" />"></actinic:block><span class="actxxsmall"><strong><actinic:variable name="BrochureName" /></strong></span><actinic:block if="%3cactinic%3avariable%20name%3d%22OuterBrochurePageID%22%20%2f%3e%20%21%3d%20%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e"></a></actinic:block> <span class="actxxsmall">]</span>
    with
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22BrochureName%22%20%2f%3e%20%21%3d%20%22More%20Pages%22" ><span class="actxxsmall">[</span> <actinic:block if="%3cactinic%3avariable%20name%3d%22OuterBrochurePageID%22%20%2f%3e%20%21%3d%20%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e"><a href="<actinic:variable name="BrochurePageURL" />"></actinic:block><span class="actxxsmall"><strong><actinic:variable name="BrochureName" /></strong></span><actinic:block if="%3cactinic%3avariable%20name%3d%22OuterBrochurePageID%22%20%2f%3e%20%21%3d%20%3cactinic%3avariable%20name%3d%22BrochurePageID%22%20%2f%3e"></a></actinic:block> <span class="actxxsmall">]</span></actinic:block>
    Where this example removes the "More Pages" brochure links.

    This will be fine if you only want to remove one or two pages. If you've a lot of such pages you may want to create a Brochure level Variable of type True/False, default true, called "ShowBrochurePage" and use that in the Condition.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Norman

      This looks great. I have three brochure pages that I wish to conceal - one of which has a three word file name.

      I have tried setting up a variable but am not certain what code I need to install in the Text Brochure Page Link Layout.

      Cheers

      PS Your multi image patch now works fine though I had to more or less start my site again, from scratch, having upgraded to v8.2. The original dbase was obviously poisoned as you suggested.
      Richard Hodgson
      Fantasy
      www.whatsyourfantasy.co.uk

      Comment


        #4
        Something like ShowBrochurePage == true

        There are tutorials in the Help - see Creating A New Condition.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Works beautifully! Took a while to recognise the need to set true or false in the drop down menu in brochure page. This really is quite clever stuff!
          Richard Hodgson
          Fantasy
          www.whatsyourfantasy.co.uk

          Comment


            #6
            Originally posted by ki450751
            This really is quite clever stuff!
            Block if's are singularly the best reason to upgrade to v8 and v9 .... they are fantastically powerful and can be wielded to great effect to open up whole new areas of design and presentation.

            There are some great sticky tutorials by gabrielcrowe that are worth 30 mins reading.


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment

            Working...
            X