Closed (fixed)
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2009 at 13:48 UTC
Updated:
3 Apr 2009 at 06:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
henrrrik commented+1
span tags are not helpful in this context.
Comment #2
drewish commentedI think the only context they're not helpful in would be RSS feeds. On web pages they're very useful for styling.
Comment #3
henrrrik commentedTypically yes, but in the case of an URL or filepath that points to an image the typical use would be to wrap it in an
<a>or<img>which the default<span>prevents.Comment #4
drewish commentedthat's reasonable, in that case i'd say we should add linked and plain versions.
Comment #5
quicksketchThis seems like it's a good idea to me also. Drewish what do you mean by "linked versions"? The "Generic files" formatter is pretty close to a file link, other than including an icon also, which people might not really want.
I'm also curious why these formatters are in ImageField at all, shouldn't they be handled by FileField?
Comment #6
quicksketchI've moved the formatters for "path_plain" and "url_plain" to FileField and removed the surrounding spans as recommended by pebosi. Fortunately it doesn't look like we need an update function for this move, CCK is plenty happy using the formatter wherever it happens to live.
Thanks pebosi for your patch. :)