Nate Turnage wrote:
On Wed, Jan 28, 2009 at 10:34 AM, Sean Cribbs <[email protected]> wrote:
I assume you're talking about the templates extension. And yes, all you
need to do is put the code you typed in the appropriate place of the
"structure" part of the template.
OMG! It does work. I thought that the quotes of the tag would interfere with
the href tag and I would need some other extension for it to work. This
rocks!
So did I! So, I wrote this for you:
tag 'local:natelink' do |tag|
part = tag.locals.page.parts.find_by_name('link')
url = part.content
"<a href=\"#{url}\">This is a link</a>"
end
Darn!
Cheers,
Mohit.
1/29/2009 | 1:12 AM.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant