Hey!

I would like to add a multiple fileds to multiple (all) unit types. Now everytime i create a new unit type, i need to go under manage fields, select a bunch of existing fields, edit the settings for them (mainly just saving them), repeat for the next fields and then repeat adding all fields for every unit type. Time consuming and error prone...
what would be a good approach to doing this in code so that everytime a new type is added the list of fields would automatically be added to it (with the predefined settings). Should i modify the schema and add some options already in there or would it be better to use the existing fields (that i created manually for the first type and bind those, if so, how?...)

most of the settings are 0/1 (air conditioning, cable-tv, balcony, ...) some are integers (nr of bedrooms, nr of bathrooms)

thnx for any info/ideas :)

Comments

acrollet’s picture

Version: 7.x-1.0-rc2 » 7.x-1.x-dev
Category: support » feature
flynorc’s picture

what worked for me (but is not a pretty solution), was just modifying the form where the unit types are created (the data part of it by adding the fields i needed)

junkbox’s picture

good call didn't think of that.