Human readable preset names

stBorchert - October 2, 2009 - 21:27
Project:ImageCache
Version:6.x-2.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

As long as I'm using ImageCache I always wanted to give some presets more descriptive names (namespace is limited and not really good to describe the preset).

Heres a patch that adds the possibility to enter descriptive names for presets. These names are used in listings (e.g. Views or CCK field output selection).

I've added some screenshots to show the new behaviour.

AttachmentSize
imagecache_preset-names.patch26.35 KB
preset_names-01.png37.59 KB
preset_names-02.png42.43 KB
preset_names-03.png16.3 KB

#1

stBorchert - October 2, 2009 - 21:39

Btw.: committing this patch would require nearly all modules depending on ImageCache to rewrite some parts of their code.
Maybe ist better to not change the name of column "presetname" to "presetnamespace" but name the new column "presetrealname" (or something like this).
That would still give users the possibility to enter descriptive names but doesn't force other modules to change their code.
On the other hand the columns are now (with this patch) named according to their contents.

#2

stBorchert - October 3, 2009 - 09:24

Other approach, same result (without renaming column "presetname" to "presetnamespace" and forcing other modules to rewrite their code).

AttachmentSize
imagecache_preset-names-3.patch 7.36 KB

#3

stBorchert - October 3, 2009 - 09:26

One minor comment change.

AttachmentSize
imagecache_preset-names-4.patch 7.31 KB

#4

smk-ka - October 15, 2009 - 20:43

I like this. It would also reduce the likelihood to rename presets and having to update all CCK field displays and Views, as described in #596620: Renaming ImageCache preset invalidates formatter display of CCK fields. .

 
 

Drupal is a registered trademark of Dries Buytaert.