EEConf 2024 is around the corner! EEConf 2024
Not sure if someone noticed this, but the testing for no results, per the docs: https://docs.expressionengine.com/latest/add-ons/query.html#testing-for-no-results
For the Query Add On does not work if its inside a {exp:member:custom_profile_data} tag.
It works outside those tags.
Example:
`
{exp:member:custom_profile_data}
{exp:query sql="SELECT something FROM exp_table WHERE member_id ='44'"}
{if no_results} Sorry, no sports heroes here! {/if}
{/exp:query}
{/exp:member:custom_profile_data}
It does not work in the {exp:member:edit_profile} either. It does not give any error; it just seems to completely ignore the no results tag which means you cannot actually run anything if no results are found for a specific query. Not sure how to overcome this issue since I need to check a table and run code if a result is found or another thing if nothing is found but since the no results does not work I can’t actually check anything.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.