Hello everyone, I’m an EE newbie so I apologize if I’m missing something crucial or using the wrong terminology. Here’s my issue:
1.) I am using stash to create a stash variable called “test” if a specific channel field is set (lp_cta). I want to run a conditional in my sidebar layout after my entries channel is closed to say if that stash variable is set (test) then display it. If that variable is NOT set, I want it to display some other default message. I am able to get the stash variable to display outside of the conditional, but I cannot write the conditional so anything within it displays.
2.) Here is my code
This stores the stash variable
{if lp_cta}{exp:stash:set name="test"}{lp_cta}{/exp:stash:set}{/if}This displays it without a conditional after the channel is closed. This is functional and does what is expected
{exp:stash:get name="test"}I am not sure how to write the conditional. If you can make sense of what I’m trying to do with this maybe I can get some suggestions.
{if stash:test}{exp:stash:get name="test"}{/if}3.) I am using EE v2.3.1
Thank you.