Often you want to display assets in a organized fashion in the theme, and it is a fair amount of work to load and sort each one. This is a little module that adds an array to the node of all the assets sorted by extension and type.
This could be incorporated into the regular asset nodeapi view op (which, as far as I could tell seems to be broken right now anyway...another day perhaps) - but I am not sure people would always want to clutter up the node object with duplicate copies of assets. The other thing would be to make this an option in asset_content.inc, but that would be quite a bit more work, and needs more thought.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 291203.patch | 902 bytes | owen barton |
| asset_bytype.patch | 1.7 KB | owen barton |
Comments
Comment #1
owen barton commentedHere is a much simpler patch that I prefer - this is part of asset 'core', but adds little or no overhead and the same functionality (better in fact...since the first one was broken!)
Comment #2
wmostrey commentedThis has been added in http://drupal.org/cvs?commit=140121, thanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.