[Radiant] Assets / Attachments and Stylesheets

John W. Long ng at johnwlong.com
Tue Jul 11 10:09:29 CDT 2006


Larry Myers wrote:
> After looking at John's screen comps for attachments (which I like),  
> does this mean attachments are strictly related to a page only, or  
> can you add attachments to layouts as well? Also, if you add the same  
> attachment to several pages will Radiant realize this and just have  
> each attachment link point to the same attachment?

Attachments will probably be implemented with some level of inheritance. 
so you could do:

<r:image src="logo.gif" />

On any page and it would find the "logo.gif" attachment on the home page 
and insert a full URL to it.

> Also I've been thinking about the way Stylesheets are currently  
> handled, and while there is nothing particularly wrong with it, it it  
> breaks up the hierarchy for me to see my content pages mixed in with  
> my stylesheets pages.  It seems like it would make sense to have a  
> "Stylesheets" tab and be able to add / edit / delete stylesheets  
> there.  They could then just be added to pages and layouts similar to  
> how attachments are assigned.  This way you can still have multiple  
> stylesheets on a page.  Ideas?

I've been sensing the need for this as well. Mainly, it seems like only 
people with developer privileges should be allowed to edit the 
stylesheets. In this case it makes sense to put them on a styles tab 
which is only showing when you have developer privileges.

But stylesheets are probably not the only thing that could use this. 
Javascripts are the other asset that comes to mind. And of course global 
images would be useful, too.

Mmm. I could see that working well. If asset management was only 
something that a developer could access, and we had attachments for 
regular folks, that might solve both parts of the problem.

Feedback?

--
John Long
http://wiseheartdesign.com



More information about the Radiant mailing list