XF 1.3 Moving guest login to new template causes error

caliman

Active member
#1
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
 

Steve F

Well-known member
#2
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.
 

caliman

Active member
#3
Thanks Steve.

I just discovered it doesn't like this conditional:

Code:
class="<xen:if is="@xb_login_overlay">OverlayTrigger</xen:if> inner">
 

Steve F

Well-known member
#4
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.
 
Top