public
Fork of AndrewO/page_attachments
Description: A clone of Radiant's page_attachments extension with a bugfix
Homepage: http://wiki.radiantcms.org/Installing_Extension_-_Page_Attachments
Clone URL: git://github.com/joelw/page_attachments.git
name age message
file README Sun Jun 01 02:18:20 -0700 2008 Basic support for adding descriptions to file a... [Joel Williams]
file Rakefile Fri Feb 29 06:43:36 -0800 2008 Initial branch from svn version 58 [Andrew O'Brien]
directory app/ Sun Jun 01 02:18:20 -0700 2008 Basic support for adding descriptions to file a... [Joel Williams]
directory db/ Sun Jun 01 02:18:20 -0700 2008 Basic support for adding descriptions to file a... [Joel Williams]
directory lib/ Fri Feb 29 06:43:36 -0800 2008 Initial branch from svn version 58 [Andrew O'Brien]
file page_attachments_extension.rb Fri Feb 29 06:43:36 -0800 2008 Initial branch from svn version 58 [Andrew O'Brien]
directory public/ Sun Jun 01 02:18:20 -0700 2008 Basic support for adding descriptions to file a... [Joel Williams]
directory test/ Fri Feb 29 06:43:36 -0800 2008 Initial branch from svn version 58 [Andrew O'Brien]
README
= Page Attachments

The Page Attachments extension allows Radiant administrators to attach files
to pages. It can also generate and display thumbnails of uploaded images if
image_science, mini-magick, or rmagick are installed on the server.

Install the extension and run 

 rake production db:migrate:extensions
 rake production radiant:extensions:page_attachments:update

When you login to your Radiant admin and edit a page, you should see an area
below the main interface that says “Attachments (0)”. Click the "+" icon to
add an attachment. You can upload multiple attachments at once. Attachments
will not be saved or removed until the whole page is saved. Therefore, if you
accidentally deleted something you meant to keep, simply cancel the page-edit.


 <r:attachment name="file.txt">...</r:attachment>
 <r:attachment:url name="file.jpg" [size="icon"]/>
 <r:attachment:#{key} name="file.jpg" [size="icon"]/>
 <r:attachment:image name="file.jpg" [size="icon"]/>

 <r:attachment:link name="file.jpg" [size="thumbnail"]/>

 <r:attachment:each [order="asc|desc"] [by="filename|size|created_at|..."]>