How to pass data to a designer template
Hi Guys,
I'm pretty new to Sitefinity so there may be something I'm not understanding about how data is handled, but I am attempting to create a custom menu for our website. I would like to create a dropdown menu similar to the navigation control that ships with Sitefinity. I want to be able to select 'a custom selection of pages' for this menu, and I'm trying to create a designer with this functionality. I followed this tutorial to create a simple control with designer: http://www.sitefinity.com/40/help/developers-guide/how-to-how-to-create-a-date-picker-control-creating-the-control-designer.html
The problem is that the designer template doesn't have a codebehind, so I'm not sure how to populate a list of top level sitemap items, nor how information gets saved to the database. I'm thinking ajax might be my friend here, but can I run controls outside of the Sitefinity model? What is the correct way to approach this? Thank you very much for your time,
-Jeff Lauder
That is a fantastic post! Thank you very much.