Thanks Laurent
That worked :)
On Mon, Feb 4, 2013 at 11:26 PM, Laurent Alquier <laur...@alquier.org>wrote:
> The only way I managed to do that was to add a property to my pages to
> capture the category (I try to have only one category per page and to use
> properties for everything else).
>
> If you add: [[Has category::Product]] to your pages (or your template if
> you are using semantic forms), it becomes simple to query for only pages in
> that category.
>
> - Laurent
>
>
> On Mon, Feb 4, 2013 at 2:12 PM, Anton Hughes <kurren...@gmail.com> wrote:
>
>> Hi
>>
>> I have the following query, that returns pages in the Products category,
>> but also sub categories.
>>
>> {{#ask: [[Category:Products]]
>> | ?hasDescription
>>
>> }}
>>
>> How do I only return results from the Products category, not sub
>> categories?
>>
>> I have $smwgUseCategoryHierarchy=false; in localSettings but this has not
>> helped.
>>
>> Thanks
>> Anton
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_jan
>> _______________________________________________
>> Semediawiki-devel mailing list
>> Semediawiki-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel
>>
>>
>
>
> --
> - Laurent Alquier
> http://www.linfa.net
>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel