[Radiant] Page Parts as Attachments, Tags, Images, Events, etc.
Keith Bingman
keith at keithbingman.com
Mon Jul 24 13:26:41 CDT 2006
Keith Bingman wrote:
> bodhi wrote:
>> Dror, I hope you don't mind, I created a patch for your work and added
>> a ticket to Trac [1]. From the quick look I had while preparing the
>> patch, I noticed a couple of things:
>>
>> * tests would be nice :)
>> * there will be problems when files of the same name are attached
>> * i changed the content method for the attachment type to return the
>> url to the file, I imagine this will cause problems if radiant is used
>> in a subdirectory (can radiant be used in a subdirectory anyway?)
>>
>> I posted the patch so others can try it out more easily. Thanks a lot
>> for starting this and sharing your code with us! I'm going to need this
>> in my current project at work.
>>
>> Bodhi
>>
>> [1] http://dev.radiantcms.org/radiant/ticket/147
>
> I ask myself if this should be a new topic since I am not writing about
> comments and the Radiant philosophy, but rather about attachments. I
> will go with the flow for now.
>
> Ok, thanks to Bodhi and Dror I actually got this going. This looks a
> real winner to me. With a few small modifications, I got the images to
> display in the Radiant interface (and went ahead and made an "image"
> attachment type, in case I want to upload something and not display it).
> I also added a radius tag for r:image with a class and alt attribute,
> all very rough but working. This fills a very big hole for me
> personally. It is still all a bit rough around the edges (error handling
> in particular is still not well implimented) but does show a nice way
> forward for attachments.
>
> I am wondering how to add some RMagick stuff and various attachement
> types, but that will have to wait.
>
>
> Keith
I just noticed a bug in this: when deleting a page part, while it give a
confrimation, deletes the attached file/image/whatever, the page part is
still there when the page is reloaded. This is true of any page part,
not just attachments. I will try to see what is going on, but my skills
are in, shall we say "development".
--
Posted via http://www.ruby-forum.com/.
More information about the Radiant
mailing list