Custom widget templates created in previous versions of TPC can be stored in /Views/
{Widget Name} or /Mvc/Views/
{Widget Name} folders of Sitefinity. Previously, either location was valid and the template would be found and used. Starting from TPC 4.3, templates must be in the /Mvc/Views/
{Widget Name} folder for the editor to find it.
To update an existing template to work with the template editor, do the following:
- Rename the template to match the naming convention
- For example: If you are creating a custom Read only template for the TpcTextField form widget named MyTemplate, its name would be Read.MyTemplate.cshtml
- Check that the template is in the correct folder
- Templates must be in the /Mvc/Views/{Widget Name} folder
- Move the file to the correct folder, if needed
- Open the page or form that uses the custom template.
- Find the widget and click the Edit link to open its designer.
- Click the Templates section at the bottom of the designer to expand it.
- Select the template from the dropdown for that template view type.
- If you do not see the template, verify its name and location match what is described here. If you are still having trouble, please contact support at support@crmportalconnector.com
- Save the designer and publish the page or form.
- Verify the page or form is using the selected template.