Hi Jan

Thanks for your answer. It was an other nodeType = textcaptcha. Here is the 
final code:

<cms:query var="questionsList" nodeType="textcaptcha" query="textcaptcha//*" 
repository="data" />

The Folder with the blue Icon is an mgnl:content but I don't know how I can 
configure this. In my example textcaptcha it is the nodetype dataFolder.

Many thanks,
Have a nice day.
Marvin

________________________________
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Jan Haderka
Gesendet: Montag, 6. Juni 2011 23:33
An: Magnolia User-List
Betreff: Re: AW: [magnolia-user] Data Repository Query


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]> 
[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]<mailto:[email protected]>>
----------------------------------------------------------------


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

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

Reply via email to