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

Forums / Developing with Sitefinity / 'Products Project' in 'Sample Generic Content based module' post

'Products Project' in 'Sample Generic Content based module' post

5 posts, 0 answered
  1. Zahid Ali
    Zahid Ali avatar
    47 posts
    Registered:
    16 Nov 2009
    20 Nov 2009
    Link to this post
    Hello,

    I was following the post below: to create Products Module and One of the steps required adding 'existing' project:Telerik.Samples.Products project.

    Say, If i want to create a new module based on products module, I'm unable to find documentaiton with regards to creating/updating the 'Project file(s)' that I would need to add to the module I'm creating.

    Please help. A swift response would be appreciated.

    Thanks.


    url to the blog post:
    http://www.sitefinity.com/blogs/ivan/posts/09-03-11/sample_generic_content_based_module_products_module.aspx
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Nov 2009
    Link to this post
    Hi Zahid Ali,

    Products module is a sample module and there is not documentation about it.The module purpose is to show how you can create GenericContent based module. If you want to create a module based on products your new module and all views should inherits from Products module classes.

    Example:

    public class MewNewModule : ProductsModule
    {
       public override string Name
            {
                get
                {
                    return Messages.Module_Name;
                }
            }
     
            /// <summary>
            /// Title of the module
            /// </summary>
            public override string Title
            {
                get
                {
                    return Messages.Module_Title;
                }
            }
     
            /// <summary>
            /// Module description
            /// </summary>
            public override string Description
            {
                get
                {
                    return Messages.Module_Description;
                }
            }
         public override IList<IToolboxItem> Controls
            {
                get
                {
                    return new List<IToolboxItem> { new MyCustomModuleToolboxItem() };
                }
            }
     public override Control CreateControlPanel(TemplateControl parent)
            {
                return new MyCustomModuleControlPanel();
            }
     
            /// <summary>
            ///             Gets the security root for the default provider
            /// </summary>
            public override ISecured SecurityRoot
            {
                get
                {
                    return this.SecurityRoots[Configuration.ConfigHelper.Handler.DefaultProvider];
                }
            }
     
            /// <summary>
            ///             Gets key/value information for provider/global permissions. Preserves information
            ///             for all providers.
            /// </summary>
            public override IDictionary<string, ISecured> SecurityRoots
            {
                get
                {
                    return MyCustomModuleManager.SecurityRoots;
                }
            }
     
    }


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Zahid Ali
    Zahid Ali avatar
    47 posts
    Registered:
    16 Nov 2009
    20 Nov 2009
    Link to this post
    Hi Ivan,

    Apologies for not being clear.

    What I meant was, I'm following the Products Module example to create a new module - I don't necessarily want to extend the Products Module.

    Since Products Module involves adding a 'Project' - i am trying to find documentation on how to create 'Project' for the module I want to create.

    Am I making sense? :S

    Please advice.

    Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Nov 2009
    Link to this post
    Hi Zahid Ali,

    Please take at the following article - MSDN. Sitefinity does not have anything to do with this.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Zahid Ali
    Zahid Ali avatar
    47 posts
    Registered:
    16 Nov 2009
    20 Nov 2009
    Link to this post
    Hi Ivan,

    I think I'm unable to explain propertly - let me try one more time.

    Basically, the Telerik.Samples.Products folder contains .cs files like ProductsManager, ProductsModule and also some under WebControls.

    Then I can see 4 references added to the References folder.

    I'm trying to see I can help/documentation on the above to create a project files for the module. I'm not asking about creating project in visual studio.

    please tell me you got that :)

    thanks man - i really appreciate your patience.
Register for webinar
5 posts, 0 answered