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

XF 1.3 Moving guest login to new template causes error

Discussion in 'Styling and Customization Questions' started by caliman, Aug 25, 2014.

  1. caliman

    caliman Active Member

    Hi all -

    I am trying to move the following guest login code to a new template and receive an error when I try to save.

    Code:
    <div class="section loginButton">       
        <div class="secondaryContent">
            <label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="<xen:if is="@xb_login_overlay">OverlayTrigger</xen:if> inner">{xen:if $xenOptions.registrationSetup.enabled, {xen:phrase sign_up_now}, {xen:phrase log_in}}</a></label>
       
            <xen:include template="xb_socialLogins" />
       
        </div>
    </div>
    The following error occurred:
    The following templates contained errors and were not saved: guest_welcome_signup: 1) guest_welcome_signup - Line 3: Invalid condition expression


    Not sure what the issue is. This code works in a sidebar_visitor_panel template.

    Any suggestions? Thanks in advance!

    caliman
     
  2. Steve F

    Steve F Well-Known Member

    That is part of our style framework XenBase. Invalid condition expression means there is no property defined in the style you are moving it to.

    Edit: And what style is it that you are working on? May be best to post in the appropriate thread.
     
  3. caliman

    caliman Active Member

    Thanks Steve.

    I just discovered it doesn't like this conditional:

    Code:
    class="<xen:if is="@xb_login_overlay">OverlayTrigger</xen:if> inner">
     
  4. Steve F

    Steve F Well-Known Member

    Right, but are you moving it within the same style?

    You shouldn't have any problem if the template is in the same style as the properties.
     
  5. caliman

    caliman Active Member

    Oh I see what you are saying Steve. I don't think I was creating the new template in the child style. THanks!! (EDIT- that worked!)
     
    Steve F likes this.

Share This Page