For those of you having difficulty installing and configuring
page_attachments:
http://dev.radiantcms.org/radiant/wiki/InstallingPageAttachments
Mangia!
Sean
p.s. I would appreciate any contributions to this page if I left
something out.
For those of you having difficulty installing and configuring
page_attachments:
http://dev.radiantcms.org/radiant/wiki/InstallingPageAttachments
Mangia!
Sean
p.s. I would appreciate any contributions to this page if I left
something out.
Thanks for this. The extension works great and just saved me a lot of
work
David P. wrote:
Thanks for this. The extension works great and just saved me a lot of
work
My pleasure. I wrote it for myself, and I’m glad when it works for
others.
Sean
That’s part of attachment_fu (which is included in page_attachments).
It’s a folder namespacing so that you could potentially have millions of
uploaded files.
Sean
I’m just curious as to what the 0000 directory is for?
/page_attachments/0000/0001/atestimg.jpg
Like…
/0000/9999/
/0001/0001/
/0001/0002/
Gotcha.
FYI, page_attachments allows you to upload multiple files of the same
filename to page(s) in the same page/child scope. While this is not a
problem when storing the files (because of the nested folder structure),
it is a problem when trying to access the files. Example:
/0000/0001/myfile.pdf
/0000/0002/myfile.pdf
<r:attachment:link name=“myfile.pdf” />
How does the tag know which file to choose?
David P. wrote:
How does the tag know which file to choose?
Ah, good point. We need some validations on that. Right now, it’s
going to pick the first it finds, which is totally DBMS dependent (MySQL
will auto-order by id).
Sean
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs