This project is read-only.

TitlePart styling

Jul 26, 2011 at 5:04 PM


Been trying to style the Title part for editing.  I have successfully created an admin theme that overrides the default.  I have added a new view, however I am running into a compiler error "An expression tree may not contain a dynamic operation" when trying to display the content.  If I use the non generic html helpers it renders ok, but the id's are incorrect so doesn't save correctly as it doesn't map to the view model!

Firstly, any ideas of how to overcome this problem?  If not, all I want to do is style the part, (hide the legend and expand the textbox) so could you add a class to the fieldset?



Sep 20, 2011 at 2:02 PM

You might need to add at the beginning of your view:

@using Downplay.Mechanics;

(and ensure you have a project reference to Mechanics in your theme).

If this doesn't correct the problem, post your code and I'll have a look.