TitlePart styling

Jul 26, 2011 at 4:04 PM

Hi,

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?

Thanks,

Jeff

Coordinator
Sep 20, 2011 at 1: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.