Forum: Radiant CMS Weird children:each behavior when mixing filters in 0.6RC1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
22ff4abebc9bfd299524bb14449d95dc?d=identicon&s=25 Erik van Oosten (Guest)
on 2007-02-24 08:22
(Received via mailing list)
Hello,

I found a weird bug (I think) in 0.6 RC1. It appears that the behavior
of the Radius tags differ depending on the filter.

I have the following content structure:
/Home Page (published)
     /Stukken (published)
          /1999 (published)
              /Beauty Queen of Leenane (published)
          /2000 (published)
              /Een draad in het donker (published)
          /2001 (published)
              /Roberto Zucco (published)
          /2002 (draft)
          /2003 (draft)
          /2004 (draft)
          /2005 (draft)
          /2006 (draft)
          /2007 (published)
              /Adel Blank (published)
              /Festen (published)

Some might recognize plays here, and you would be right :)

In the default layout there is the following:
<r:content part="sidebar" inherit="true" />

In Home Page I have the part 'sidebar', filter: Textile (currently this
is the only page which this part):
<r:find url="/stukken/"><r:content part="menu"/></r:find>

In Stukken I have the part 'menu', filter: None:
<r:children:each order="desc">
  <div class="MenuBlokTitel"><r:link/></div>
  <div class="MenuBlok">
    <r:children:each order="desc">
      <r:if_content part="menu"><r:content part="menu"/></r:if_content>
    </r:children:each>
  </div>
</r:children:each>

All of the published plays have a 'menu' part, filter: none.

When I request the home page what I expect is:
     <div class="MenuBlokTitel"><a href="/stukken/2007/">2007</a></div>
     <div class="MenuBlok">
        Menu content for Festen.
        Menu content for Adel Blank.
     </div>
     <div class="MenuBlokTitel"><a href="/stukken/2001/">2001</a></div>
     <div class="MenuBlok">
        Menu content for Roberto Zucco.
     </div>
     <div class="MenuBlokTitel"><a href="/stukken/2000/">2000</a></div>
     <div class="MenuBlok">
        Menu content for Een draad in het donker.
     </div>
     <div class="MenuBlokTitel"><a href="/stukken/1999/">1999</a></div>
     <div class="MenuBlok">
        Menu content for Beauty Queen of Leenane.
     </div>

However, I got the following:
<p><div class="MenuBlokTitel"><a href="/stukken/2007/">2007</a></div>
  <div class="MenuBlok">
        Menu content for Festen.
        Menu content for Adel Blank.
        Menu content for Roberto Zucco.
        Menu content for Een draad in het donker.
        Menu content for Beauty Queen of Leenane.</p>
</div>
Also note the weird <p> placements.

When you change the filter of 'Home Page' part 'sidebar' to None, I get
the expected results.

Shall I add this to Trac?

Regards,
     Erik.


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/
This topic is locked and can not be replied to.