Re: [Radiant] Passing dynamic values to page_attachment tags

2009-01-07 Thread Nate Turnage
On Wed, Jan 7, 2009 at 3:00 PM, Keith Bingman wrote:

> What was your problem with non image files? Paperclip handles those pretty
> well now and paperclipped is getting better...
>


And Paperclipped handles Radiant 0.6.9 better than page_attachments as well.
No offense to it's author, but after fighting with page_attachments to get a
previous commit that won't break 0.6.9 working on my dev and production
servers, I won't be using page_attachments again.

Paperclipped is much easier for managing assets, eveything is much more
organized, the content is searchable and you sort by media type. And on top
of it all you don't have to create a content page for storing all your
assets and links to images are just as simple as Adam manetioned:
.

IMHO, page_attachments was good for it's time and filled a need for asset
management, but with paperclipped now available I won't be using it on any
future projects.




~Nate
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Passing dynamic values to page_attachment tags

2009-01-07 Thread Keith Bingman
What was your problem with non image files? Paperclip handles those  
pretty well now and paperclipped is getting better...


keith

On Jan 6, 2009, at 7:17 PM, Jose Hales-Garcia wrote:



On Jan 6, 2009, at 9:41 AM, Adam van den Hoven wrote:

Ok, maybe this is cheeky but, paperclipped would probably work  
better for you.


I tried paperclipped but stuck with page_attachments because  
attachment_fu handles non-image files better than paperclip.  If  
that changes, I might try it again.


Jose
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Passing dynamic values to page_attachment tags

2009-01-06 Thread Jose Hales-Garcia


On Jan 6, 2009, at 9:41 AM, Adam van den Hoven wrote:

Ok, maybe this is cheeky but, paperclipped would probably work  
better for you.


I tried paperclipped but stuck with page_attachments because  
attachment_fu handles non-image files better than paperclip.  If that  
changes, I might try it again.


Jose
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Passing dynamic values to page_attachment tags

2009-01-06 Thread Sean Cribbs
I might also mention that the page_attachment tags are there for 
convenience only.  There's no reason you can't use the bare path to the 
file in your markup.


Sean

Adam van den Hoven wrote:
Ok, maybe this is cheeky but, paperclipped would probably work better 
for you. You don't have to attach images to a page unless you want to 
and then you can simply do:





Otherwise, I think the answer is "no".

On 6-Jan-09, at 9:30 AM, Jose Hales-Garcia wrote:



I'm looking for a way to pass dynamic values into the 'name' 
attribute of r:attachment:image.  Is that possible?  Below is my 
rationale.


Jose


I'm using page_attachments (which is great) and centralizing often 
used images in an Images page (I'm doing the same with files).


So I can output one of these common images in any page with:


 


So far, beginners stuff.

Now I'd like to reduce the amount of chars needed to do this, maybe 
so it looks something like:




In the snippet I'm hoping to be able to do something like: (using the 
parameterized snippet extension)




Except the above line, as written, doesn't work.

Is there a way of doing this?
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant



___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Passing dynamic values to page_attachment tags

2009-01-06 Thread Adam van den Hoven
Ok, maybe this is cheeky but, paperclipped would probably work better  
for you. You don't have to attach images to a page unless you want to  
and then you can simply do:





Otherwise, I think the answer is "no".

On 6-Jan-09, at 9:30 AM, Jose Hales-Garcia wrote:



I'm looking for a way to pass dynamic values into the 'name'  
attribute of r:attachment:image.  Is that possible?  Below is my  
rationale.


Jose


I'm using page_attachments (which is great) and centralizing often  
used images in an Images page (I'm doing the same with files).


So I can output one of these common images in any page with:


 


So far, beginners stuff.

Now I'd like to reduce the amount of chars needed to do this, maybe  
so it looks something like:




In the snippet I'm hoping to be able to do something like: (using  
the parameterized snippet extension)




Except the above line, as written, doesn't work.

Is there a way of doing this?
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Passing dynamic values to page_attachment tags

2009-01-06 Thread Jose Hales-Garcia


I'm looking for a way to pass dynamic values into the 'name' attribute  
of r:attachment:image.  Is that possible?  Below is my rationale.


Jose


I'm using page_attachments (which is great) and centralizing often  
used images in an Images page (I'm doing the same with files).


So I can output one of these common images in any page with:


  


So far, beginners stuff.

Now I'd like to reduce the amount of chars needed to do this, maybe so  
it looks something like:




In the snippet I'm hoping to be able to do something like: (using the  
parameterized snippet extension)




Except the above line, as written, doesn't work.

Is there a way of doing this?
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant