On Jun 6, 2011, at 4:05 PM, Marvin Kerkhoff wrote: > Nope, that isn’t the answer. In my JCR Browser company (example) have an blue > icon on the right corner. > Textcaptcha doesn’t have this icon? Is this a problem.
Uh, I'm just guessing here that by the blue icon, you mean that the node type of our captcha is mgnl:contentNode rather then mgnl:content? That could indeed be an issue. Try to add nodeType="mgnl:contentNode" parameter to your <cms:query/> tag. Cheers, Jan > > Mercy > Marvin > > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Jan Haderka > Gesendet: Montag, 6. Juni 2011 13:37 > An: Magnolia User-List > Betreff: Re: [magnolia-user] Data Repository Query > > try /jcr:root/textcaptcha//* > > when you want to search from the root using xpath you have to name the root > node in the path. > > HTH, > Jan > > On Jun 6, 2011, at 11:37 AM, Marvin Kerkhoff wrote: > > > Hi there > > I’ve try to do a query to the data workspace, but it does not works. I wish > to iterate through all textcaptchas folders. > questionsList get out [ ] Can you help me? Thanks > > <cms:query var="questionsList" query="textcaptcha//*[itemtype='textcaptcha']" > repository="data" type="xpath" /> > <captchas> > <c:forEach var="question" items="${questionsList}"> > > <captcha> > <question>asdad</question> > <answers> > <answer>schwarz</answer> > <answer>Schwarz</answer> > </answers> > </captcha> > > </c:forEach> > </captchas> > > The Structure of Textcaptcha: > > > - textcaptcha > - Folder > - answer > - itemtype > - name > - Folder > - answer > - itemtype > - name > …. > > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- > > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
