Ruby Forum Radiant CMS > How can I return a list of attachments, skipping the first?

Posted by pixelnate@gmail.com (Guest)
on 29.08.2008 20:03
(Received via mailing list)
The title says it all. Is there a way to use <r:attachment:each> while
skipping the first result? I have a logo and a number of PDFs attached
to a page and I just want to list the PDFs. Is that possible with the
page_attachments plugin as it is? If so how?


Thanks,
~Nate
Posted by Arik Jones (imakethings)
on 29.08.2008 20:39
pixelnate@gmail.com wrote:
> The title says it all. Is there a way to use <r:attachment:each> while
> skipping the first result? I have a logo and a number of PDFs attached
> to a page and I just want to list the PDFs. Is that possible with the
> page_attachments plugin as it is? If so how?
> 
> 
> Thanks,
> ~Nate

An offset option may be built in. But if it isn't, it's not hard to add.
Posted by Arik Jones (imakethings)
on 29.08.2008 20:40
By the way, are you using paperclipped or page attachments?
Posted by pixelnate@gmail.com (Guest)
on 29.08.2008 20:47
(Received via mailing list)
On Fri, 2008-08-29 at 20:40 +0200, Arik Jones wrote:
> By the way, are you using paperclipped or page attachments?

Page Attachments. I plan on trying out paperclipped on a future project,
but on this one I stuck with what I knew (mostly).


~Nate
Posted by Arik Jones (imakethings)
on 29.08.2008 20:51
pixelnate@gmail.com wrote:
> On Fri, 2008-08-29 at 20:40 +0200, Arik Jones wrote:
>> By the way, are you using paperclipped or page attachments?
> 
> Page Attachments. I plan on trying out paperclipped on a future project,
> but on this one I stuck with what I knew (mostly).
> 
> 
> ~Nate

Paperclipped is waaaay easier and a little more flexible. You can access 
all attachments from anywhere using the radiant tags. Where as in Page 
Attachments, you normally have to re-upload or remember what page a 
certain asset is attached to. The interface is much cleaner as well.
Posted by pixelnate@gmail.com (Guest)
on 29.08.2008 20:58
(Received via mailing list)
On Fri, 2008-08-29 at 20:51 +0200, Arik Jones wrote:
> Paperclipped is waaaay easier and a little more flexible. You can access 
> all attachments from anywhere using the radiant tags. Where as in Page 
> Attachments, you normally have to re-upload or remember what page a 
> certain asset is attached to. The interface is much cleaner as well.

Now you tell me. Thanks. So just as a for-instance, how would you return
the documents attached to a page while skipping the first one?


~Nate
Posted by David Piehler (davidpiehler)
on 29.08.2008 20:59
Arik Jones wrote:
> Paperclipped is waaaay easier and a little more flexible. You can access 
> all attachments from anywhere using the radiant tags. Where as in Page 
> Attachments, you normally have to re-upload or remember what page a 
> certain asset is attached to. The interface is much cleaner as well.

Can Paperclipped work without Image Magick installed? PageAttachments 
does, and simply skips all the thumbnail creation stuff.

- Dave

Posted by pixelnate@gmail.com (Guest)
on 29.08.2008 21:03
(Received via mailing list)
On Fri, 2008-08-29 at 20:51 +0200, Arik Jones wrote:
> Paperclipped is waaaay easier and a little more flexible.


Can it exist along with page_attachments in the same project? That way I
can move things over gradually instead of redoing the entire attachment
scheme at the 10th hour (not quite 11th hour yet).

This coming up with a better-idea-than-what-you-just-implemented has got
to stop. How can I pause in internets so that I can catch up?



~Nate
Posted by Arik Jones (imakethings)
on 29.08.2008 21:11
pixelnate@gmail.com wrote:
> On Fri, 2008-08-29 at 20:51 +0200, Arik Jones wrote:
>> Paperclipped is waaaay easier and a little more flexible.
> 
> 
> Can it exist along with page_attachments in the same project? That way I
> can move things over gradually instead of redoing the entire attachment
> scheme at the 10th hour (not quite 11th hour yet).
> 
> This coming up with a better-idea-than-what-you-just-implemented has got
> to stop. How can I pause in internets so that I can catch up?
> 
> 
> 
> ~Nate

It's not really our fault that you didn't properly test all your 
options. I'm just revealing what I've discovered in my own experiences. 
Sure, the timing blows. But hey, it's just code.
Posted by Christopher Dwan (Guest)
on 29.08.2008 21:18
(Received via mailing list)
It looks to me like Paperclipped has it's own version of Image Magick,
so you don't have to install it. (please, someone correct me if I'm
wrong) It's been a while, but I think I didn't bother installing Image
Magick on my machine because of the headache, and here is Paperclipped
creating thumbnails for me somehow...

Now, disabling thumbnail creation for the sake of saving resources.. I
have my doubts about how easy that would be to do..

-C
PS: I just tried Paperclipped today. Wholly awesome Batman! Why wasn't
it listed on the wiki? I was amazed and slightly ticked that it was
such a secret... (I made sure to add it to the wiki)
Posted by Christopher Dwan (Guest)
on 29.08.2008 21:23
(Received via mailing list)
> It's not really our fault that you didn't properly test all your
> options. I'm just revealing what I've discovered in my own  
> experiences.
> Sure, the timing blows. But hey, it's just code.

hmmm I'm pretty sure the original comment from Nate was intended to be
humorous in nature...

On the serious side though, I'm trying to think up a solution that
will help with sorting through the extensions out there. For a new
person coming to Radiant, there doesn't seem to be a good way to
figure out what extensions to pick, how hard they are to install, what
incompatibilities there are etc. without trying everything out  and
digging around in the mailing list archives.  Once upon a time it was
easy to know all the available extensions and keep on top of things,
it's getting to the point where it's no longer easy and soon will be
nigh impossible.

-C
Posted by Arik Jones (imakethings)
on 29.08.2008 21:25
Now I see why there are emoticons. lol.
Posted by Arik Jones (imakethings)
on 29.08.2008 21:44
Christopher Dwan wrote:
> On the serious side though, I'm trying to think up a solution that
> will help with sorting through the extensions out there. For a new
> person coming to Radiant, there doesn't seem to be a good way to
> figure out what extensions to pick, how hard they are to install, what
> incompatibilities there are etc. without trying everything out  and
> digging around in the mailing list archives.  Once upon a time it was
> easy to know all the available extensions and keep on top of things,
> it's getting to the point where it's no longer easy and soon will be
> nigh impossible.
> 
> -C

I talked a little bit about this some time ago. ExpressionEngine has 3rd 
party extensions/plugins which are usually free and then there are the 
"approved" extensions which are usually extensions built by the EE 
development team and or a few select non-core developers. It's basically 
just a "Recommended" list of extensions.

Would Radiant benefit from something like this?