Dropdown with quicklinks from site pages
Any tips on how to make a dropdown that will contain some quicklinks to the site.
Backend users should be able to add/remove pages from the dropdownlist.
Well I thought why not try the module builder.
Please check the code reference of your module. You can find it on the right hand side of you module setting screen. There you can find an example on how to obtain a collection of your module items. Please use the specified code to obtain the collection and to specify it as a data source for your rad grid.
Point b) is a known issue which we are working on and the work around it is to export the module from your development project and import it in your live one. This will create the correct links in the live environment.
the Telerik team
Thank's I got an open ticket. I did use the example on how to obtain a collection of my module items.
a) I comented the line which was causing the error
b) It collected double entries (support is helping me)
The double entries are coming from the fact that you are not filtering the collection by Status. You should only get Live items. Actually in the database, there are two records for each item - one Live and one Master and when you use the GetDataItems method, it returns both - the Live and Master items. Here's what filter you should add to your method:
dynamicModuleManager.GetDataItems(releaseType).Where(item => item.Status == ContentLifecycleStatus.Live);
If this Master and Live is standard then it would be nice if the code sample created (which I such a huuuuuugggggghhhh help - thank' s a whole heap) would take this into consideration.
I would never have know that there are two item (live and master)
I am glad that you have solved the problems. Thank you for your feedback. We will update the code reference to remove the confusion.
the Telerik team