[Radiant] How to add images to pages?

dror tirosh dtirosh at gmail.com
Mon Sep 4 17:43:36 CDT 2006


I never enocuntered this problem, and I do add or remove images quite a lot.
We remove images by just taking them off the list at the top.
I'ld be interested to see your fix.

One thing that I have to admit makes me unhappy with the code at the moment
is that it all goes to the same directory, I'ld like it to go to a directory
tree similar to the slug, or something of the sort. I hope I'ld get that
done and then upload another copy of it.

Dror

On 9/4/06, Keith Bingman <keith at keithbingman.com> wrote:
>
> I do have one question: I would like to be able to add photos once the
> gallery is started. You seem to have programmed that, but when I upload a
> second photo, I get a validation error... I will eventually track it down,
> but maybe you have already found the problem.
> Dpn't worry, I realize that this code is not quite done. I enjoy it
> nonetheless and it has helped me a lot...
>
> Keith
>
>
> On Sep 4, 2006, at 11:17 PM, dror tirosh wrote:
>
> Sorry,
> This is mainly for my own use, the script is only there for the
> page_part_type, any actual page_part you use doesn't have any script for it.
> But for most the code is pretty simple so you obviously figured it out from
> there.
> Dror
>
> On 9/4/06, Keith Bingman <keith at keithbingman.com> wrote:
> >
> > Once again, answered my own question: the included scripts do not
> > make the thumb and large folders, these must be made or it breaks. It
> > is easy to change this. Other than that, this is pretty slick.
> >
> > Keith Bingman
> >
> > On Sep 4, 2006, at 8:33 PM, Keith Bingman wrote:
> >
> > > dror tirosh wrote:
> > >> I also did a multiple upload in an asynch background page_part,
> > >> whcih I
> > >> use
> > >> afterwards to show galleries.
> > >> This relies on the Rmagick package.
> > >> And a small change to the routes.rb file.
> > >>
> > >> in your routes.rb add:
> > >>     # Upload Routes
> > >>   map.with_options(:controller => 'admin/upload') do |upload|
> > >>     upload.index                  'upload',
> > >>          :action => 'index'
> > >>         upload.upload                 'upload/upload',
> > >>              :action => 'upload'
> > >>   end
> > >>
> > >> put the upload_controller into app/controllers/admin
> > >> the multiple_upload_part_type into app/page_part_types (or
> > >> whereever you
> > >> keep them)
> > >> and the view.rar open into app/views/admin
> > >> Hope I didn't forget anything
> > >> Dror
> > >
> > > A little late, but for some reason this does not work. The upload
> > > indicator times out and then the images are not processed...
> > >
> > > Keith Bingman
> > >
> > > --
> > > Posted via http://www.ruby-forum.com/.
> > > _______________________________________________
> > > Radiant mailing list
> > > Radiant at lists.radiantcms.org
> > > http://lists.radiantcms.org/mailman/listinfo/radiant
> >
> > _______________________________________________
> > Radiant mailing list
> > Radiant at lists.radiantcms.org
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> >
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>
> _______________________________________________
> Radiant mailing list
> Radiant at lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20060904/2d803b57/attachment.html


More information about the Radiant mailing list