Test for Empty Category
- From: "Jason" <judgej (at) xaraya.com>
- Date: Thu, 23 Nov 2006 11:48:31 -0000
"wwalkerbout" <wayne (at) walkerbout.com> wrote in message
news:ek3rd8$g9v$1 (at) newton.xaraya.com...
> Hi,
>
> In a Summary Template (e.g.
> ./themes/<themename>/modules/articles/user-summary-doc.xt), is it possible
> to do a test of a Category to determine if it is empty?
>
> The situation I have is that I want to display a message via the Summary
> Template for visitors to come back when Content is available, if the
> Category is empty. 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