I am changing the layout that Tridion provides for changing the content of a component. At the moment am changing the way that checkboxes work.
For example: I have a Field 'active' which now is represented in the standard way.
I would like to change this to: [checkbox] active.
- Putting them next to each other.
- Reversing the order (checkbox before label).
- removing the ':' on the label and removing the 'yes'.
- Changing the text size and positioning to be aligned.
Now the strange part: I did this, all the css, it showed exactly as I wanted. BUT action 1 and 2 will BREAK the bond between changing the value in the Field (on general tab) and updating this in the source.
I have no clue how this breaks it. I have been trying to re-add the eventHandeler that is set during initialisation.
$evt.addEventHandler(c.SchemaControl, "change", this.getDelegate(this.onFieldsChanged)); $evt.addEventHandler(c.IsExternal, "valuepropertychange", this.getDelegate(this.onFieldsChanged));
This does not help. At the moment I have no clue how to restore the auto update of the fields to the source. The only way I see now is by making a complete custom eventhandeler which will read out all fields, construct the correct source xml and put this as the source xml of the component.
- Why does this break?
- Is there an easy way to fix it?