This project is read-only.

Runtime modifier of contentitem in edit mode?

Topics: Developer Forum
Feb 5, 2009 at 11:54 AM
With AddComponent Technique i'm able to modify frontend pages.
And now i need to make some cosmetic changes at contentItem edit interface (change editable elements positions, some visual options), but I can't run my modifier at backend, why?
Feb 5, 2009 at 4:24 PM
I think i've got what the problem you've faced: you need to modify a definition for existing content item type (say, add an WithEditable* attribute to a class) before an item of this type appears in the ItemEditor at Edit.aspx page, right ? 

Maybe, the way to go would be to follow LanguageMenu.ascx or Languages.ascx controls logic. Having created a similar control, you'll be able to hook on OnInit and do a neccessary tweaks to a definition early enough in a page life-cycle so that they'll take effect on ItemEditor.