[Radiant] if_content with inherit
Adam van den Hoven
adam.vandenhoven at gmail.com
Mon Jul 7 18:04:31 CDT 2008
There are few things that make me more grumpy that empty elements that
server no useful purpose. I'd love it.
On 7-Jul-08, at 12:56 PM, Jim Gay 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
> _______________________________________________
> Radiant mailing list
> Post: Radiant at radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
More information about the Radiant
mailing list