[Radiant] if_content with inherit

Tim Gossett tim at mrgossett.com
Mon Jul 7 16:38:09 CDT 2008


On Mon, Jul 7, 2008 at 3:56 PM, Jim Gay <jim at saturnflyer.com> wrote:

> 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


I'm for it.

--
Tim Gossett


More information about the Radiant mailing list