Closed (won't fix)
Project:
Asset
Version:
5.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2008 at 00:32 UTC
Updated:
26 Sep 2008 at 13:17 UTC
Here is a patch that give you several new formatters for CCK. They are formaters that must be used with a tpl as they returns the aid, the filepath or an array of the main informations of the asset.
It might or might not be useful for others so feel free to include it or not in the module.
Of course, the rational behind this is that IMO the format of an asset should be field dependent. It also should be handled in a smarter way than my solutionn but I had to get that work fast so I've done it that way. Getting the aid or the filepath let you do what you want in the tpl file.
| Comment | File | Size | Author |
|---|---|---|---|
| asset_cck_formaters.patch | 1.31 KB | cirotix |
Comments
Comment #1
wmostrey commentedThanks a lot for this Damien, I'll try these out and think about implementing this. Currently asset_load doesn't return the filepath for instance, which it should. I'm not sure if these handlers should go into different calls.
Comment #2
wmostrey commentedI'm all for more formatters but it looks to me like http://drupal.org/node/286919 is more what people will be expecting. You can always add more formatters by writing your custom module, or by contributing an asset_cc_extra module for instance.
Comment #3
cirotix commentedI like what is described in http://drupal.org/node/286919. Is it implemented in the last version of asset 1 ?