1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Conditional to not show HTML on portal (XenPorta)

Discussion in 'Styling and Customization Questions' started by Ludachris, May 18, 2014.

  1. Ludachris

    Ludachris Well-Known Member

    I have some code that shows up in the ad_above_top_breadcrumb that I don't want displayed on the portal page (the homepage) in XenPorta. I figure it's a matter of checking something to see if its = EWRporta_Portal but I don't know what variable to check.

    Sorry, I've been working on a migration for 13 hours and should probably be able to find this somewhere...
     
  2. Steve F

    Steve F Well-Known Member

    Code:
    <xen:if is="!{$contentTemplate} == 'EWRporta_Portal'">
            This Content will show on all pages except XenPorta
    </xen:if>
     
  3. Ludachris

    Ludachris Well-Known Member

    Strange. That's the code I tried and it makes it so the code doesn't show up anywhere. That's why I gave up and asked here. I'll see if I did something wrong.
     
  4. Steve F

    Steve F Well-Known Member

    Hmm..I thought it worked in ad templates. May only be available in PAGE_CONTAINER..
     
  5. Ludachris

    Ludachris Well-Known Member

    I don't know, I just confirmed that's how I have it structured. Maybe it doesn't work in ad templates.
     

Share This Page