More in this section

Forums / Developing with Sitefinity / Create custom module like "News"

Create custom module like "News"

5 posts, 0 answered
  1. Jay Mehta
    Jay Mehta avatar
    19 posts
    Registered:
    02 Sep 2009
    26 Feb 2010
    Link to this post
    Hi,

    I am using sitefinity to host on of our websites. I would like to develop a custom module, something like inbuilt BLOGs module or NEWS module or GENERIC content MODULE, in which you can create and save it as a instance and then use it on the public side.

    eg: As is Generic content module, administrator can create number of content blocks, and use any of them on the page.

    I want to develop something like this, which can help me have editable custom properties for a module and its instance and then same thing when it is been used on the page.

    Any pointers on how to start with this, any samples?

    Thank you,
    Jay Mehta.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    26 Feb 2010
    Link to this post
    Hello Jay Mehta,

    You can take a look at


    All the best,
    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. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    08 Apr 2010
    Link to this post
    Ivan -
    In my current webconfig (v 3.7) it is slightly different and in putting in the line

    <

     

    cms defaultProvider="Sitefinity" pageExtension=".aspx" projectName="Products" disabled="false" pageEditorUIMode="Overlay">
    It give me a "Tag was not closed" message. There s an added line in my webconfig of

     

    <

     

    cms defaultProvider="Sitefinity" pageExtension=".aspx" projectName="IMA" disabled="false" pageEditorUIMode="Overlay">

     


    And I put the line in the products sample like such. Is this correct?

      <providers>
        <clear />
        <add name="DefaultSecurityProvider" connectionStringName="DefaultConnection" type="Telerik.Security.Data.DefaultSecurityProvider, Telerik.Security.Data" membershipProvider="Sitefinity" roleProvider="Sitefinity" />
      </providers>
    </security>
    <cms defaultProvider="Sitefinity" pageExtension=".aspx" projectName="IMA" disabled="false" pageEditorUIMode="Overlay">
        <cms defaultProvider="Sitefinity" pageExtension=".aspx" projectName="Products" disabled="false" pageEditorUIMode="Overlay">
      <providers>
        <clear />
        <add connectionStringName="DefaultConnection" allowPageHistory="true" allowPageWorkflow="false" cachingProviderName="ASPNET" name="Sitefinity" type="Telerik.Cms.Data.DefaultProvider, Telerik.Cms.Data" />
      </providers>
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    08 Apr 2010
    Link to this post
    Hi Laura,

    You are adding the provider in a wrong section. The node you have used is supposed to handle the CmsManager providers - actually the CmsManager can work only with one provider. If you want to add an additional provider like Products you have to do this under telerik/cmsEngine/ node.

    Below is a sample snippet that illustrates this.

    <cmsEngine defaultProvider="Generic_Content"
                <providers>          
                    <clear/> 
                    <add name="SomeName" allowLocalization="true" urlRewriteFormat="[Publication_Date]/[Name].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="True" defaultMetaField="Name" securityProviderName="" allowVersioning="True" allowWorkflow="false" allowComments="false" commentsModeration="true" versioningProviderName="" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data"/>


    Sincerely yours,
    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.
  5. Laura
    Laura avatar
    311 posts
    Registered:
    25 Feb 2008
    08 Apr 2010
    Link to this post
    Okay, thanks. I am just following the example here: http://www.sitefinity.com/blogs/ivan/posts/09-03-11/sample_generic_content_based_module_products_module.aspx to create a new module and that line was in the webconfig.   I found all the places "Products" was in the webconfig and copied over to my webconfig.
    This line was also there
    <add name="Products" urlRewriteFormat="[Name].aspx" urlWhitespaceChar="_" visible="False" defaultMetaField="Name" securityProviderName="" allowVersioning="True" applicationName="/Products" versioningProviderName="" allowComments="false" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.Cms.Engine.Data.Providers.DefaultProvider, Telerik.Cms.Engine.Data" />

    under

     

    <cmsEngine defaultProvider="Generic_Content">
    <providers>
    <clear /> 
Register for webinar
5 posts, 0 answered