[Radiant] if_content with inherit

Jim Gay jim at saturnflyer.com
Mon Jul 7 14:56:48 CDT 2008


Is there any interest in adding the inherit attribute to the  
if_content tag?

In some instances I'll find the need to output something like

<div id="extras">
<r:content part="extras" inherit="true" />
</div>

But I don't have a way to conditionally render the <div id="extras">  
bit.
If the parent or current page has an "extras" part, then it will  
appear, but if it doesn't I'll have an empty div element.

Is there a simple way to handle this or would <r:if_content  
inherit="true"> be a clear and welcomed addition?

-Jim


More information about the Radiant mailing list