You'd need to write a tag that wraps it.
tag 'myext:model:if_something' do |tag|
tag.expand if (your code to check that value)
end
that would expand the tag only if that something is set the way you
want, and your radius/html would look like this:
<r:myext:model:if_something>
h1. Some Header
<r:myext:model:something />
</r:myext:model:if_something>
There are probably other ways to do it too, but that's the simplest
one that comes to mind.
On Jun 17, 2008, at 3:53 AM, nn wrote:
Let's say I have the fallowing:
h1. Some Header
<r:myext:model:something />
I need to check if myext:model:something is blank, and if it is "h1.
Some Header" should not be shown. If its not blank, then the header is
shown. Any sugestions?
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant