You have not set the nodeType in your query tag. The default is "mgnl:content" 
so unless you are looking for nodes of that type you need to set it explicitly. 

http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/ref/4.4/magnolia-taglib-cms/tagreference.html#cms:query

In AdminCentral, the default is "nt:base" which will return ANY nodes.

-will

On 07.07.2011, at 12:33, Magnolia Forums (on behalf of null) wrote:

> 
> Hi,
> 
> I've come across this strange behaviour:
> 
> if I execute an xpath query in the admin interface I got in result what i 
> expected (n results), if I execute it with a taglib in a jsp page it won't 
> return any results.
> 
> my query is:
> 
> //element(*,nt:base)[@tags='xxxx'] 
> 
> on a custom repository (aka not website, in which works both in admin 
> interface and in tag)
> 
> <cms:query query="//element(*,nt:base)[@tags='xxx']" type="xpath" 
> var="relatedGuideList" repository="yyyyy" />
> 
> 
> Anyone can help?
> 
> Thanks
> 
> -- 
> Context is everything: 
> http://forum.magnolia-cms.com/forum/thread.html?threadId=5cd8128a-3604-4a32-9979-da552153ee6e
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to