hi there, i might be missing something- but how do i get the new fields displayed? i've got everything up and working, the data is saved.
selected "image" as formatter in the displayfields configuration of the contenttype but the new field isn't displayed with the image?
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | imagefield_extended_insert_integration_11.patch | 3.22 KB | btmash |
Comments
Comment #1
thommyboy commentedand as an addition to that- (how) can the new field be displayed when the image gets inserted into a textarea using the insert module?
Comment #2
gg4 commentedChanged the title — display in node view is already supported.
Insert integration would be great. Could probably just implement hook_insert_styles() and hook_insert_content() to use existing formatters.
Comment #3
alan d. commentedThis would be a nice feature, but I do not have the time currently.
Happy to help review any patches!
Comment #4
thommyboy commentedactually this would help everyone who uses node_embed just to be able to insert (imagecached outputted) images containing just one or a few additional fields which really costs performance (imagine 10 node_load() for just having 10 images included in a textfield...)
Comment #5
btmash commentedI'm actually working on this due to a current project - I'll be submitting a patch within the next week as I'm sure whatever I write out can be cleaned up :)
Comment #6
thommyboy commentedcool, that sounds good and i will have a look at it! ;) i think it would be great to add the extended fields being wrapped in something like
Comment #7
gg4 commentedImplementing hook_insert_styles() is very straightforward, but hook_insert_content() doesn't use $element as an argument so implementation may be a bit complicated.
::
Comment #8
griz commented+1!!!1!1
Can anyone who's working on this post what they've got so far?
Comment #9
griz commentedI'm trying it with the Inline module instead and getting 'not found'. anyone else?
Comment #10
griz commentedCheck out WYSIWYG Fields.
Comment #11
btmash commentedI haven't looked at what @brokendesign just posted but sorry on not getting on this sooner. I am attaching a patch of what I have working. About the patch, it creates a new theme function
theme_imagefield_extended_insert_formatter_ifeand you can perform the same format of overrides as your would withtheme_imagefield_extended_formatter_ife(only now, you would implement with the wordinsertin the function/template name). It should show up as an insert option if you have the image module enabled.Comment #12
thommyboy commented@ BTMash sorry for not being here for so long- used another quick solution but would like to come back to this.
just tried your patch- now the presets with ",with additional fields" show up in the insert-field-configuration, great.
actually inserting an image using that preset doesn't do anything- is there anything else that must be done?
Comment #13
alan d. commentedClosed because Drupal 6 is no longer supported.