Hi!

Yes, I get results with that query in the JCR Queries Tab in the Backend.

But Magnolia 4.4.2 (our version) is using an older version of JackRabbit 
(1.6.2)...

Regards from Vienna,

Richard

Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Erik Alphenaar
Gesendet: Dienstag, 20. September 2011 10:23
An: Magnolia User-List
Betreff: Re: [magnolia-user] Xpath query filtering out nodes of a specific 
template

Hi all,

Thanks for your replies!
When you both execute such a query in the "JCR Queries" under "Tools" in the 
admin central, do you get any results?

jackrabbit version: 2.2.7
javax.jcr version : 2.0

Regards,
Erik.

On Mon, Sep 19, 2011 at 6:15 PM, Unger, Richard 
<[email protected]<mailto:[email protected]>> wrote:
Hi Erik,

The following query works for us:

/jcr:root//element(*,mgnl:content)[MetaData/@mgnl:template='lmatArtikel']

This example returns all pages that have the template "lmatArtikel".

We're on EE 4.4.2.

Regards from Vienna,

Richard


Von: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 Im Auftrag von Erik Alphenaar
Gesendet: Montag, 19. September 2011 16:14
An: Magnolia User-List
Betreff: [magnolia-user] Xpath query filtering out nodes of a specific template

Hi there,

I am probably doing something terribly wrong, but I can't seem to find a query 
that is working, based on my numerous searches in documentation.

- I am using the admincentral to check my queries
- I use OpenUtils JCRCriteriaFactory.createDirectJcrQuery to create pageable 
results in our apps
- It needs to be an xpath query, no sql
- repository: website
- returning nt:base for now

I have tried:

/jcr:root//*/MetaData[@mgnl:template='article']
/jcr:root//*[MetaData/@mgnl:template='article']
/jcr:root//*[@mgnl:template='article']
to no avail...


while /jcr:root//*/MetaData nicely returns all MetaData nodes...

Any help would be greatly appreciated!!


Regards,
Erik Alphenaar
JTeam B.V.

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