Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion File overhaul
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Klein  
View profile  
 More options Feb 20 2011, 2:44 pm
From: Tim Klein <t...@kelpdesign.com>
Date: Sun, 20 Feb 2011 20:44:17 +0100
Local: Sun, Feb 20 2011 2:44 pm
Subject: Re: [silverstripe-dev] Re: File overhaul
Good point!

There has been some discussion about versioning assets...
this should fit in nicely.

How would actual files be stored when versioned?

On Sun, Feb 20, 2011 at 8:02 PM, Mat Weir <mat.w...@xebidy.com> wrote:
> It would be nice too if the HTML editor used a similar pattern to internal
> hyperlinks, like [file id=2], or [image id=2], and then perhaps width,
> height and class parameters in there too, like [image id=2 width=80
> height=60 class=left].
> We've had clients who go to tidy up there Files & Images section, only to
> find that the CMS doesn't manage files moving around and their pages then
> have broken images.
> Cheers,
> Mat Weir

> On Mon, Feb 21, 2011 at 6:50 AM, Uncle Cheese <aaroncarl...@gmail.com>
> wrote:

>> I love that idea!

>> Another suggestion:

>> Working locally on an existing site is a huge pain when it comes to
>> assets. The database is looking for files that are non-existent,
>> unless you've opted to download your client's entire assets folder. No
>> thanks.

>> It seems to me there could be a really simple change to the API to
>> make this better. Allow getFilename(), getURL(), and other accessors
>> to prepend an alternate BaseHref so that file paths would always point
>> to the web (say, your live site). In other words:

>> For file 'assets/my-folder/myfile.pdf"
>> $File.URL returns "http://www.mysite.com/assets/my-folder/myfile.pdf"
>> Instead of "http://localhost:8888/mysite/assets/my-folder/myfile.pdf"

>> Maybe there's a way to do this that is eluding me. I'm new to local
>> development, so bear with me.

>> On Feb 20, 9:07 am, Tim K <t...@kelpdesign.com> wrote:
>> > Hi guys,

>> > wanted to suggest a change in the File API

>> > the main goal is to make it easier to write custom file extensions
>> > through
>> > modules etc

>> > therefore I'd suggest a registry pattern like

>> > File::register_handler("pdf", "MyPDFFile", 50);

>> > The first argument being the file "." extension, the second the
>> > classname
>> > and the third priority.
>> > This way core filetypes can easily be added or overwritten...
>> > When new files are created - File::get_file_handler(extension) would
>> > either
>> > return a new instance of the class with the highest priority or default
>> > back
>> > to File...

>> > alternatively to the file extension - the mime type could be used to
>> > identify the content type...

>> > What do you think?

>> --
>> You received this message because you are subscribed to the Google Groups
>> "SilverStripe Core Development" group.
>> To post to this group, send email to silverstripe-dev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> silverstripe-dev+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/silverstripe-dev?hl=en.

> --
> You received this message because you are subscribed to the Google Groups
> "SilverStripe Core Development" group.
> To post to this group, send email to silverstripe-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> silverstripe-dev+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/silverstripe-dev?hl=en.

--
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/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.