By Date: <-- -->
By Thread: <-- -->

Test for Empty Category



Hi Jason,

Thanks very much for the prompt reply to my question.

Ah, that makes sense. So I just need to run my test in the "view" template 
(in my case user-view-docs.xt), to determine if the user is in an empty 
category or not.

Now my question is (given my less than competent coding skills), what would 
be the syntax of the query I would use to determine if a category is empty 
from the user-view.xt template (or template version thereof)?

Again, any help at all with this would be most appreciated.

Cheers,


Wayne


"Jason" <judgej (at) xaraya.com> wrote in message 
news:ek41qn$kpv$1 (at) newton.xaraya.com...
>
>> I just don't know how to test for that in the Summary Template
>>
>> Any suggestions appreciated.
>
> I'm not entirely sure, but would the template be user-view.xt? That is the 
> template that provides the category overviews, and so you should have 
> arrays in there you can check. The user-summary-docs.xt template is a 
> one-per-item template, and won't be called at all if there are no items 
> being displayed (i..e if the user is in an empty categroy).
>
> -- JJ
>


_______________________________________________
Xaraya_devel mailing list
Xaraya_devel (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_devel