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

Who is online

In total there are 4 users online :: 1 registered, 0 hidden and 3 guests
(based on users active over the past 5 minutes)

Users browsing this forum: Bing [Bot] and 3 guests

cron