Add a function to show a list of...

LordsKing

Active member
Hello

I would a tag (like this: <xen:show>CONTENT</xen:show>) to show a list of banned users, users who have 100 trophy points and more!

Example :
Code:
<xen:show>{$user.message_count} == 10</xen:show>

It will show a list of members who have 10 messages !
 
Upvote 0
Templates have so semblance of data, so without being passed in an already fetched set of users in $users, the system will not know what to do.

On top of that, the display output is unclear in your suggestion, but for something so broad, you would need to define the display anyways, which gets you basically back to a normal fetch, xen:foreach loop, and writing to display.

I, personally, do not see the merit of the tag your suggesting for the reasons I just stated.
 
Templates have so semblance of data, so without being passed in an already fetched set of users in $users, the system will not know what to do.

On top of that, the display output is unclear in your suggestion, but for something so broad, you would need to define the display anyways, which gets you basically back to a normal fetch, xen:foreach loop, and writing to display.

I, personally, do not see the merit of the tag your suggesting for the reasons I just stated.
Yes, but I don't konw how to use the xen:foreach :/
 
Top Bottom