--
You received this message because you are subscribed to the Google Groups "SilverStripe Core Development" group.
To post to this group, send email to silverst...@googlegroups.com.
To unsubscribe from this group, send email to silverstripe-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/silverstripe-dev?hl=en.
There has been some discussion about versioning assets...
this should fit in nicely.
How would actual files be stored when versioned?
--
Tim Klein
address: Level 1, 1 Searle Lane, Queenstown
skype: kelptim
email: t...@kelpdesign.com
website: http://www.kelpdesign.com
phone: +64 3 409 2031
mobile: +64 21 234 35 78
---
Check out http://www.page-elements.com/
Tim: Why doesn't decoration of the File class work for you,rather than subclassing? BTW: When I first read the "handler" API suggestion I thoughtit had something to do with HTTP request handling, so got a bit confused :)
This would work well for eg. adding a rotate function to Image
On file instances this could be much more specific:
Eg: a PDF::forTemplate could return a screenshot of the pdf file,
created using imagick
Sound files could be converted to other formats...
Video files could get screen grabs
Also the individual metadata could be extracted much more easily (play
time, page count, ....)
I guess nothing for the core to worry about - just nice if there was
an elegant way of handling this.
However, the most important question hasn't yet been answered: what is the registered handler going to do?
--
The Asset Repositories would simply be locations containing a potential
mirror of the assets directory. The Administrator would define this in a
_config, giving each a priority. These definitions should support at
least filesystem lookups as well as HTTP/HTTPS, with the default being
the local asset directory in the filesystem.
It would be interesting to have priorities per filetype too. This would
allow, for instance, all calls to video files(FLV/MP4/etc) to first try
the "Remote Video Server A" repository before falling back to the local
asset directory.
So the File object would essentially test for the existence of a file at
a repository in accordance to priority, and either return it, fallback
to the next repository, or return a 404 exhausted. Each test could be
cached for performance.
Would this also resolve the issue at hand? Is it of any interest?
~ Brice
yeah sounds awesome.
I have been thinking about having a remote assets folder too...
Any experience with this?
cheers