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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

nested HasManyComplexTableField


Reply


2 Posts   750 Views

Avatar
marcink

Community Member, 89 Posts

11 April 2009 at 6:49am

hi,

i want to have a page type with hmctf, and inside this hmctf i want to have another hmctf...

for example, i would like to add any number of divs to my page, each div with a image - this would be the 1st hmctf.
to each image, there are any number of attributes - the 2nd hmctf, inside the 1st.

is that possible?

or is there a better way?

Avatar
Carbon Crayon

Community Member, 598 Posts

12 April 2009 at 1:00pm

Hi Marcink

I doubt this is possible without *a lot* of work rewriting ComplexTableField and probably a load of the javascript which runs in the CMS.......not a good idea unless you like headaches ;)

Probably one ctf with a dynamic dropdown to select the image would be the closest you can get without a lot of hassle.

Hope that helps