Hi there, 

I'm heavily working w/ Doctrine NestedSet behavior. I have a tree I'd like to 
render in a complex way.
Let say I have a path for my selected node : node1 > node2 > node3

I'd like to render it so I can display :

<ul>
<li>node 1 sibling 1</li>
<li>node 1 sibling 2</li>
<li>node 1 sibling 3</li>
<li>
  node 1
  <ul>
    <li>node 2 sibling 1</li>
    <li>node 2 sibling 2</li>
    <li>
      node2
      <ul>
        <li>
          node 3
          <ul>
            <li>node 3 child 1</li>
            <li>node 3 child 2</li>
            <li>node 3 child 3</li>
          </ul>
      </ul>
    </li>
    <li></li>
  </ul>
</li>
<li>node 1 sibling</li>
<li>node 1 sibling</li>
<li>node 1 sibling</li>
</ul>

Do you have any idea how I can simply do that? I tried to do something but it 
ended w/ multiple imbricated foreach and while...

Thanks !

Romain

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to