I have it in the lib dir of a custom extension, in a file called extra_tags.rb inside a module called ExtraTags. Then, in the init file of the extension, I have this line:

Page.send :include, ExtraTags

You can also just add the module to the standard Radiant lib dir and put the line above in environment.rb.

And yes, I use it with the page_attachments extension. Just supply the name of the attachment to the src attribute of the tag.

/Casper



On 12/07/2008, at 18:27, Nate Turnage wrote:

On Sat, Jul 12, 2008 at 10:59 AM, Casper Fabricius <[EMAIL PROTECTED] >
wrote:

Hi Nate,

I use SWFObject (http://code.google.com/p/swfobject/) and have a custom
tag to insert flash elements:
http://pastie.org/232639


Which model do you add this to? And do you use it with the page_attachment
extension? Thanks for the method though. It's bril.



~Nate
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to