Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I'm trying to show a message in the user's profile page when a "reverse_related_pages" tag returns no results. But it looks like nothing gets executed inside if it doesn't find anything to display.

Basically what I'm trying to achieve:

Code: Select all
<cms:reverse_related_pages>
    <cms:dump_all />

    <cms:if k_total_records eq '0' >
        <h2> It looks like there's nothing here </h2>
    <cms:else />
        <div>
            ....
        </div>
    </cms:if>
</cms:reverse_related_pages>


dump_all never gets executed, let alone the rest of the code.
Code: Select all
<cms:reverse_related_pages>
    <cms:dump_all />
   
    <div>
        ....
    </div>

    <cms:no_results>
        <h2> It looks like there's nothing here </h2>
    </cms:no_results>
</cms:reverse_related_pages>
That's it! 8-)

Thanks
3 posts Page 1 of 1