Announcement

Collapse
No announcement yet.

show content on all pages except

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

    show content on all pages except

    I think I can do it via css, but thought I'd see if there was another way to put content in the global header but hide some of it on all pages except for a couple.

    For example: all pages will have navigation then the promo boxes. Except the home page and a landing page will have navigation, then the slider, then the promo boxes. I want to hide the slider on all pages except the home page and the landing page.

    Thanks!
    Cway
    Trent Studios, LLC
    Graphic Design, Website Design
    TrentStudios.com
    (970) 568-8652

    #2
    Re: show content on all pages except

    You could just wrap it in a conditional statement:

    Code:
    <mvt:if expr="g.Screen NE 'SFNT'">
        //This will show on all pages except SFNT
    </mvt:if>
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: show content on all pages except

      Brennan, thank you for the quick response.
      That's good to know.
      What if I wanted the opposite? - show on only the SFNT page?
      Last edited by cway; 09-29-15, 05:22 PM.
      Trent Studios, LLC
      Graphic Design, Website Design
      TrentStudios.com
      (970) 568-8652

      Comment


        #4
        Re: show content on all pages except

        Replace the NE with EQ will include only the SFNT page.
        Gordon Currie
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: show content on all pages except

          I also want the product list page to show the content. Is this correct? It works.

          Code:
          <mvt:if expr="g.Screen EQ 'SFNT' OR g.Screen EQ 'PLST'">
          content to only show on storefront or product list
          </mvt:if>
          Thanks!
          Cway
          Trent Studios, LLC
          Graphic Design, Website Design
          TrentStudios.com
          (970) 568-8652

          Comment


            #6
            Re: show content on all pages except

            yes. (you can try it in a template.)
            Last edited by Gordon - Phosphor Media; 09-29-15, 05:36 PM.
            Gordon Currie
            Phosphor Media - "Your Success is our Business"

            Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
            phosphormedia.com

            Comment

            Working...
            X