Try our conversational search powered by Generative AI!

Is it possible to edit Dynamic Content?



I've developed a new Dynamic Content module, and it's working ok but I don't seem to be able to edit the details. I was hoping that I could double click or right click on it and it would bring up the edit interface but apparently not. The only way to edit the details seems to be to edit the raw markup that's in the xhtml property as part of the Dynamic Content, which is something I wouldn't want the CMS users doing.

Is there a step that I've missed in my implementation, or is this just not possible?

Thanks in advance



Dec 08, 2009 15:24

There is a button on the rich text editor tool bar that looks something like {}.Select your dynamic content and click this button to edit. I must admit that a double or right click would be more intuitive for editors. 

Dec 08, 2009 23:44

I've just tried that out and it doesn't seem to behave in that way for me - when i select the dynamic content in the xhtml property the parentheses icon becomes greyed out. When i just left click on the dynamic content and then click the parentheses, it brings up the dialog to insert a new dynamic content, not edit the details of the existing one.

Can anyone advise?

Dec 11, 2009 15:00

First, "Insert dynamic content" must be enabled in Admin mode for the particular page type on the XHTML property that you are using to insert Dynamic Content.  If you are able to insert Dynamic Content I'm confident this has been done.

ake sure that you are properly implementing "State" (i.e. public string State) including both getting and setting state of each of your settings.  SDK reference:

Then, ensure you've implemented the "Properties" collection (i.e. public EPiServer.Core.PropertyDataCollection Properties) to get and return the PropertyDataCollection containing each of your settings. This may be the missing piece of your puzzle???

Last, the basic steps to edit dynamic content are as follows:

1) Enter edit mode

2) Select the dynamic content control (the yellow rectangle that says something like: {DynamicContent:<DC Name>})

3) Click the Dynamic Content ("{}") button

Check out this post for more info on what might be missing:

Another one that has more details on "State" and "Properties" since my info above does not provide samples:

Hope this helps.


Edited, Dec 16, 2009 23:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.