+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Developing a case study module

Developing a case study module

8 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    27 Aug 2010
    Link to this post
    Hello,

    I'm about to start developing a "Case Study" module but have a few technical questions before I start. My goal is to create:

    - The module that will allow the user to manage all case studies
    - A user control (in the toolbox) that will allow the user to display a case study overview at random
    - A user control (in the toolbox) which can be dropped onto any page to display the entire case study

    I guess this approach is very similar to the news module.

    My questions are:

    - I have already developed a user control and WebUITypeEditor that allows the user to select multiple documents from the libraries - can i call this WebUITypeEditor from my module?

    - The user control that will display a random case study overview needs to have a hyperlink on it which will link to the page containing the full case study. How can i find out programatically which page contains the full case study? 

    Thanks in advance
    higgsy
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Aug 2010
    Link to this post
    Hi Alastair,

    You can call the WebUITypeEditor using PropertyEditorDialog. You can take a look at this forum post.

    The user control that will display a random case study overview needs to have a hyperlink on it which will link to the page containing the full case study. How can i find out programatically which page contains the full case study?


    If you use ContentView based control, there is a property SingleItemUrl that you can use to get the details page and then you have to concatenate it with contentItem.UrlWithExtension.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    27 Aug 2010
    Link to this post
    Hi Ivan,

    Thanks for your reply.

    Can you just clarify the following for me:

    If you use ContentView based control, there is a property SingleItemUrl that you can use to get the details page and then you have to concatenate it with contentItem.UrlWithExtension.

    Do you mean that the user control for the full case study should use a contentview control? Is there an example anywhere?

    Thanks
    higgsy
  4. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    27 Aug 2010
    Link to this post
    Ivan,

    Are you stating I should develop a generic content based module? 

    If so, is there any detailed documentation other than the products module. The products module certainly seems a comprehensive solution, but the majority of the documentation covers the code that was written to achieve it, not detailing why the code is structured as it is.

    Is there a "how-to" article on developing generic content modules?

    Thanks
    higgsy
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Aug 2010
    Link to this post
    Hello Alastair,

    You can take a look at TOC  or download CHM Version (file size:12 MB)

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    27 Aug 2010
    Link to this post
    Ivan,

    I presume you are referring to looking at the Products sample module? I havent read the whole of the products module documentation yet, but does it explain why the products module is developed as it is? What i mean is, its all well and good examining code of an existing module, but unless the code is clearly documented it is very hard, if not almost impossible, to understand what code is needed to create your own module.

    Thanks
    higgsy
  7. higgsy
    higgsy avatar
    336 posts
    Registered:
    05 Aug 2010
    27 Aug 2010
    Link to this post
    Hi Ivan,

    Do you have a response to my question?

    I presume you are referring to looking at the Products sample module? I havent read the whole of the products module documentation yet, but does it explain why the products module is developed as it is? What i mean is, its all well and good examining code of an existing module, but unless the code is clearly documented it is very hard, if not almost impossible, to understand what code is needed to create your own module.

    I've now read the documentation regarding the products module, and I personally feel it is a long way short of providing enough documentation to create my own custom content based module. There is plenty of code, but theres actually so much that it would take a heck of a lot of time debugging every line of code to see what its doing. Is there not a simple example that explains the requirements for building a content based module?

    Thanks again
    higgsy
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    30 Aug 2010
    Link to this post
    Hi Alastair,

    The entire backend logic and all methods - views, configurations, navigation etc used in the sample modules are documents in TOC  or CHM Version. There are small comments in the code of the sample modules that gives basic idea about purpose of a given class, method or property.

    For instance the article below explains how the CommandPanel works and the same logic is used in the sample modules



    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered