Get images working from .md post files
@@ -96,38 +96,38 @@ public ActionResult Index()
|
||||
#### Step 2: Create widget designer/public
|
||||
Once your widget is created, you can create your widget designer. Using Thunder, create a widget designer for an existing widget. Name your widget designer. I use the name of the widget and append "Designer".
|
||||
|
||||

|
||||

|
||||
|
||||
Click "Next" on the next screen. Choose your FAQItemController from the list on the next screen.
|
||||
|
||||
##### Step 2.1: Choose widget designer fields
|
||||
Next, choose the List property from your controller and set it up as follows. Especially note two things. First, choose the DynamicContentSelector. Second, update the "Select the content type for the selector" to 'Telerik.Sitefinity.Lists.Model.List'. Click on "Add".
|
||||
|
||||

|
||||

|
||||
|
||||
##### Step 2.2: Update generated widget designer files
|
||||
In the generated .ascx file, update the 'ServiceUrl' property on the FlatSelector control to '/Sitefinity/Services/Lists/ListService.svc/?managerType=&providerName=&itemType=Telerik.Sitefinity.Lists.Model.List&provider=&sortExpression=LastModified%20DESC&skip=0&take=50'.
|
||||
|
||||

|
||||

|
||||
|
||||
In the generated .cs file, remove line 135 that sets the ConstantFilter property to 'Visible=true'.
|
||||
|
||||

|
||||

|
||||
|
||||
Finally, in the generated .js file, change the property that is used as the value of the selected list from 'OriginalContentId' to 'Id'. This code can be found in the '_ListDoneSelecting' method.
|
||||
|
||||

|
||||

|
||||
|
||||
At this point, you should be done! Build your project, plop your new widget on a page and test it out! Here's what mine looks like.
|
||||
|
||||
The edit dialog:
|
||||

|
||||

|
||||
|
||||
The list select screen:
|
||||

|
||||

|
||||
|
||||
The selected item screen:
|
||||

|
||||

|
||||
|
||||
|
||||
[sf-article]: http://www.sitefinity.com/documentation/documentationarticles/change-your-dynamic-content-selector-to-choose-from-generic-content
|
||||
|
||||
BIN
src/posts/2014/05/21/widget-designer-changejsfile.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/posts/2014/05/21/widget-designer-editscreen.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
src/posts/2014/05/21/widget-designer-fields1.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
src/posts/2014/05/21/widget-designer-naming.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/posts/2014/05/21/widget-designer-removeline135.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/posts/2014/05/21/widget-designer-selectedscreen.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
src/posts/2014/05/21/widget-designer-selectscreen.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
src/posts/2014/05/21/widget-designer-serviceurl1.png
Normal file
|
After Width: | Height: | Size: 22 KiB |