Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

HasManyComplexTableField - Images


Go to End


1329 Views

Avatar
adesweb

Community Member, 39 Posts

9 September 2008 at 9:30pm

Hi,

I have managed to get a formatted (img tag) image within a ComplexTableField, by having a custom get function in my DataObect, and then using setFieldFormatting to change the image ID in the column to the actual formatted image.

However, when I change the table to a HasManyComplexTableField this does not work, and I cannot seem to use setFormattedField to any custom getters.

I need this because I will have user submittted content of both text and image formats, and need to moderate these in batches.

Please help if you can....

Adrian