Product Example module
We are looking at the products module to use as an example to refactor for a couple custom content types we are making.
When we go into the admin of Sitefinity and go under the Design -> Widget Templates -> Create a Template, we see 2 new entries for "List of products items" and "Single product item". When we add our html and click the "Create this template" button, there are no errors and we are redirect to the page that lists out all the widget templates with no new template. If I try one of the built in content types, it will create the template in the list with no problem.
Are we missing something in the setting, code or database?
Hi John,
You are right the newly created templates are not shown, they are shown only when selecting template in Product Item widget placed on a page in edit mode. This is a bug with Widget templates module that will be fixed in upcoming releases.
Kind regards,
Stanislav Velikov
the Telerik team
Thanks for the response Stanislav, I have a few more problems I could use some help with.
1) When I place the control on the front end page and go to the control designer, I go to select a single item and it shows a list of News Articles. Where do I go to change this so it will load in my custom type (in this instance Case Studies)?
2) For another refactoring of the products module, we have a slideshow module. When I place the control on the front end page and select a custom widget template, it says "Error parsing the template". I tried removing all html from the template, having just basic html, and copying the html from an existing news widget template, none of these options worked. Where can I find the problem that is causing this error?
3) When testing the workflow of the refactored project, I create 2 users, 1 user "test1" is part of the editor role. The other user "test2" is part of the editor and author roles. When I edit/create a new case study or slideshow with "test1" user, I use the "test2" user to try and approve and publish. When "test2" user goes to do the approval, they seem to get stuck in an infinite redirect loading of the page. If i use the administrator account, he can go in and publish with no problem. What could be causing this infinite redirect loop?
Hello John,
1) By default the settings for the designer are in ProductsDesigner.cs
var singleItemSettings = new SingleItemSettingsDesignerView();
singleItemSettings.DesignedDetailViewType = typeof(ProductDetailsView).FullName;