Inside the repeater item template, I placed an umbraco propertypanel which I gave an ID and left it's contents blank. Then, in the ItemDatabound function, I insert the properties editor control.
Sofar, this works great. The problem comes when I try to save any changes I made. I have tried dozens of things, but I just can't retrieve the value of the controls and save them.
I am currently managing the saving of the properties, but it seems a really awkward way of getting it done. It works, but I would need to add a case to my switch statement for each and every new propertytype. It seems to me it should be much easier to get it done as the both the default document and member pages allow custom properties and are able to save them.
I checked the umbraco 4.5.2 source, but I just can't locate the code that handles the list of custom properties on a memberpage in the backend.
Saving member properties
Hey all,
I have been trying to make a page to edit member properties. So, I got all the properties and bound them to a repeater:
Inside the repeater item template, I placed an umbraco propertypanel which I gave an ID and left it's contents blank. Then, in the ItemDatabound function, I insert the properties editor control.
Sofar, this works great. The problem comes when I try to save any changes I made. I have tried dozens of things, but I just can't retrieve the value of the controls and save them.
What am I missing here?
-Ferdy
I am currently managing the saving of the properties, but it seems a really awkward way of getting it done. It works, but I would need to add a case to my switch statement for each and every new propertytype. It seems to me it should be much easier to get it done as the both the default document and member pages allow custom properties and are able to save them.
I checked the umbraco 4.5.2 source, but I just can't locate the code that handles the list of custom properties on a memberpage in the backend.
If anyone has a more elegant way of doing this, I'd still appreciate hearing it.
-Ferdy
is working on a reply...