You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_newsletter_form <input type="text" class="form-control" id="first_name" name="first_name" placeholder="First name" value="{if {exp:stash:not_empty name='st_logged_in_member_first_name'}}{exp:stash:get name='st_logged_in_member_first_name'}{/if}">
OR <input id='radio-mr' type="radio" name="gender" value="male" {if '{stash:embed:st_logged_in_member_gender}' == 'male'}checked="checked"{/if}> <--- does not work either
This is not working.
When I use {stash:embed:st_logged_in_member_first_name} it does give me the correct value, however I can't seem to get it to work with a conditional.
The text was updated successfully, but these errors were encountered:
GitTworn
changed the title
Setting variable in layout not passing value to child
Setting variable in layout not passing value from child template
Jul 3, 2023
In the global (most outer) layout I would like to get some member variables and pass them on the a template that uses.
_global_layout
In a child template I want to use them.
_newsletter_form
<input type="text" class="form-control" id="first_name" name="first_name" placeholder="First name" value="{if {exp:stash:not_empty name='st_logged_in_member_first_name'}}{exp:stash:get name='st_logged_in_member_first_name'}{/if}">
OR
<input id='radio-mr' type="radio" name="gender" value="male" {if '{stash:embed:st_logged_in_member_gender}' == 'male'}checked="checked"{/if}> <--- does not work either
This is not working.
When I use
{stash:embed:st_logged_in_member_first_name}
it does give me the correct value, however I can't seem to get it to work with a conditional.The text was updated successfully, but these errors were encountered: