Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Escaping and Pre-escaping: pointers for knowing when to use it?

Status Resolved
Add-on / Version Speedy 1.5.2
Severity
EE Version 6.4.3

Paul Larson

Mar 14, 2023
</div>
</div>
<style>#gc-cookie-popup {height: 0;}#popup-close{height: 0; width: 0 !important; opacity: 0;padding: 0;position: absolute;}</style>

{/if}
{exp:speedy:escape:global-layout}
    {if logged_in_member_id == 1}
    {embed='include/.mobile-menu-dynamic-test'}
    {if:else}
    {embed='include/.mobile-menu-dynamic'}
    {/if}
{/exp:speedy:escape:global-layout}

<div class="siteWrapper clearFix">
    <span aria-hidden="true" class="yellow-stripe"></span>
{exp:speedy:escape}
    {site-header-mega-menu}
{/exp:speedy:escape}

I can not get this conditional to work on a site. I’m trying to show a version of the menu to a logged in user for debug purposes.

I bet parse order is the issue.

Right now: the {if:else} .mobile-menu-dynamic is what displays, even if I’m logged in as super.

And lower in the page, the standard exp:speedy:escape {site-header-mega-menu} works fine.

The combo of the conditional, if_logged in, and escape seems to be what I’m stumbling over.

 

#1

BoldMinded (Brian)

What other variations of this template logic have you tested?

Login to reply