Pb with Alternate in my theme for Fields.Common.Text.Edit

Topics: Core, Customizing Orchard, General, Troubleshooting
Dec 6, 2012 at 1:54 PM

I want to customize the UI of a custom form using a Custom Type but I am unable to name or place in View hierarchy the new model I defined.

I tried many combinations of renaming and folder placement but nothing seems working.

The basic idea - copying the modified file keeping the same name and folder hierarchy under my theme- which is working for other types of fields doesn't work for Text fields.

Should I create a special name to replace the Fields.Common.Text.Edit.cshtml and where to pace it.

 

I would say that the default model for text fields editing is rather ugly and impracticable using a fieldset which takes 100% of width in the form. Especially when you don't want fieldsets....and have 30 text fields in the form.

Developer
Dec 6, 2012 at 2:48 PM

\Themes\{YourTheme}\Views\EditorTemplates\Fields\Common.Text.cshtml

Dec 6, 2012 at 3:23 PM

I have already tried it, no success. The fieldset which should have gone is still there.

I also found a discussion between Piedone and Bertrand Leroy where the conclusion was for Edit TextField alternates were not working ?

Developer
Dec 6, 2012 at 4:40 PM

Correction : Fields.Common.Text.cshtml  . not \ after Fields seems to work.

\Themes\{YourTheme}\Views\EditorTemplates\Fields.Common.Text.cshtml 

Dec 6, 2012 at 8:16 PM
Edited Dec 6, 2012 at 8:23 PM

Notok...but

\Themes\{YourTheme}\Views\EditorTemplates\Fields.Common.Text.Edit.cshtml ok 

?????