<master> <property name="title">@category_heading@</property> <property name="context">@context@</property> <if @categories:rowcount@ gt 0> <h3>@category_heading@</h3> <p> <ul> <multiple name="categories"> <li> <a href="categories?keyword_id=@categories.keyword_id@">@categories.heading@</a> (Subcategories: @categories.children_count@) </multiple> </ul> </if> <else> <!-- <i>No subcategories under this category</i> --> </else> <if @assigned_ads:rowcount@ gt 0> <!-- <h3>Ads under this category</h3> --> <ul> <multiple name="assigned_ads"> <li> <a href="ad-view?ad_id=@assigned_ads.item_id@">@assigned_ads.title@</a> </multiple> </ul> </if> <else> <i>no ads assigned under this category</i> </else>