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?

Comments

thommyboy’s picture

Title: display the new fields? » display the new fields in node view and when the image is inserted using insert module

and as an addition to that- (how) can the new field be displayed when the image gets inserted into a textarea using the insert module?

gg4’s picture

Title: display the new fields in node view and when the image is inserted using insert module » Integration with Insert Module
Category: support » feature

Changed 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.

alan d.’s picture

Version: 6.x-4.1 » 6.x-4.x-dev

This would be a nice feature, but I do not have the time currently.

Happy to help review any patches!

thommyboy’s picture

actually 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...)

btmash’s picture

Assigned: Unassigned » btmash

I'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 :)

thommyboy’s picture

cool, 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

and maybe an additional wrapper around the inserted image and the additional fields too, to be flexible regarding css-styling?
gg4’s picture

Implementing hook_insert_styles() is very straightforward, but hook_insert_content() doesn't use $element as an argument so implementation may be a bit complicated.

::

griz’s picture

+1!!!1!1

Can anyone who's working on this post what they've got so far?

griz’s picture

I'm trying it with the Inline module instead and getting 'not found'. anyone else?

griz’s picture

Check out WYSIWYG Fields.

btmash’s picture

Status: Active » Needs review
StatusFileSize
new3.22 KB

I 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_ife and you can perform the same format of overrides as your would with theme_imagefield_extended_formatter_ife (only now, you would implement with the word insert in the function/template name). It should show up as an insert option if you have the image module enabled.

thommyboy’s picture

@ 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?

alan d.’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)