More in this section

Forums / Developing with Sitefinity / Intrasite module creation in Sitefinity4.1

Intrasite module creation in Sitefinity4.1

5 posts, 0 answered
  1. Rakesh
    Rakesh avatar
    72 posts
    Registered:
    11 Jan 2011
    23 Jun 2011
    Link to this post
    I have installed Sitefinity4.1 and all works fine.Now I want to create a custom module Ebook .I have read through many posts,but no effect.I heve created it in Sitefinity 3.7 using

    http://www.sitefinitywatch.com/notes/09-02-03/Creating_Custom_Sitefinity_Modules.aspx.

    Is their anything like this that make module creation in Sitefinity4.1 much easier.

    waiting for a fast reply.......

    Thanks in advance...
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    23 Jun 2011
    Link to this post
    Hi Rakesh,

    Take a look at this post

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Rakesh
    Rakesh avatar
    72 posts
    Registered:
    11 Jan 2011
    23 Jun 2011
    Link to this post
    hai Ivan,
    Thanks for your fast reply.I will check it and get you updated.
  4. Rakesh
    Rakesh avatar
    72 posts
    Registered:
    11 Jan 2011
    23 Jun 2011
    Link to this post
    I copied the folder to my root and when run I got the error
    " The name 'HelloWorldModule' does not exist in the current context " 
    in the Setup.aspx.cs.

    what i missed please help...how can i register the module ?

    here is my web.config.

    <?xml version="1.0"?>
    <!--
            Note: As an alternative to hand editing this file you can use the
            web admin tool to configure settings for your application. Use
            the Website->Asp.Net Configuration option in Visual Studio.
            A full list of settings and comments can be found in
            machine.config.comments usually located in
            \Windows\Microsoft.Net\Framework\v2.x\Config
    -->
    <configuration>
        <configSections>
            <sectionGroup name="madam">
                <section requirePermission="false" name="formsAuthenticationDisposition" type="Telerik.Sitefinity.Utilities.MS.Madam.FormsAuthenticationDispositionSectionHandler, Telerik.Sitefinity.Utilities"/>
                <section requirePermission="false" name="basicAuthentication" type="Telerik.Sitefinity.Utilities.MS.Madam.FormsAuthenticationDispositionSectionHandler, Telerik.Sitefinity.Utilities"/>
                <section requirePermission="false" name="userSecurityAuthority" type="System.Configuration.SingleTagSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
            </sectionGroup>
        </configSections>
        <appSettings>
            <add key="TestLocalization" value="false"/>
        </appSettings>
        <system.web>
            <siteMap defaultProvider="SitefinitySiteMap">
                <providers>
                    <add name="SitefinitySiteMap" type="Telerik.Sitefinity.Web.SitefinitySiteMap, Telerik.Sitefinity" taxonomyProvider="OpenAccessDataProvider" pageTaxonomy="Pages" rootNode="FrontendSiteMap" pageProvider="OpenAccessDataProvider"/>
                </providers>
            </siteMap>
            <roleManager enabled="false"/>
            <membership defaultProvider="Default">
                <providers>
                    <clear/>
                    <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
                </providers>
            </membership>
            <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Telerik.Sitefinity.Localization.ExtendedResourceProviderFactory, Telerik.Sitefinity"/>
            <!--
                            Set compilation debug="true" to insert debugging
                            symbols into the compiled page. Because this
                            affects performance, set this value to true only
                            during development.
                    -->
            <compilation debug="true"  targetFramework="4.0">
                <assemblies>
                    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                    <add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
                    <add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                    <add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                </assemblies>
                <buildProviders>
                    <remove extension=".svc"/>
                    <add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
                </buildProviders>
            </compilation>
            <!--
                            The <authentication> section enables configuration
                            of the security authentication mode used by
                            ASP.NET to identify an incoming user.
                    -->
            <authentication mode="Forms"/>
            <customErrors mode="Off"></customErrors>
            <!--
                            The <customErrors> section enables configuration
                            of what to do if/when an unhandled error occurs
                            during the execution of a request. Specifically,
                            it enables developers to configure html error pages
                            to be displayed in place of a error stack trace.

                    <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
                            <error statusCode="403" redirect="NoAccess.htm" />
                            <error statusCode="404" redirect="FileNotFound.htm" />
                    </customErrors>
                    -->
            <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
                <controls>
                    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
                    <add tagPrefix="sitefinity" namespace="Telerik.Sitefinity.Web.UI.Fields" assembly="Telerik.Sitefinity"/>
                </controls>
            </pages>
            <httpHandlers>
                <add verb="*" validate="false" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
                <add verb="*" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
                <add verb="*" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
                <add verb="*" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
                <add verb="*" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
                <add verb="*" validate="false" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
                <add verb="*" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
                <add verb="*" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
                <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" validate="false"/>
                <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler" validate="false"/>
            </httpHandlers>
            <httpModules>
                <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModuleIIS6, Telerik.Sitefinity"/>
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
                <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
                <add name="SitefinityAtompubModule" type="Telerik.Sitefinity.Security.SitefinityAtompubModule, Telerik.Sitefinity"/>
            </httpModules>
        </system.web>
        <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="basicHttpBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
                        <security mode="None"/>
                    </binding>
                    <!-- note: To enable https/SSL support for the Analytics module, uncomment this binding -->
                    <!--<binding name="webBinding" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
              <security mode="Transport">
                <transport clientCredentialType="None"/>
              </security>
            </binding>-->
                </basicHttpBinding>
            </bindings>
            <behaviors>
                <endpointBehaviors>
                    <behavior name="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior">
                        <enableWebScript/>
                    </behavior>
                </endpointBehaviors>
                <serviceBehaviors>
                    <behavior>
                        <serviceMetadata httpGetEnabled="true"/>
                        <serviceDebug includeExceptionDetailInFaults="true"/>
                        <!--<openAccessWorkflowTracking applicationName="/workflow" />-->
                    </behavior>
                    <behavior name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior">
                        <serviceMetadata httpGetEnabled="true"/>
                        <serviceDebug includeExceptionDetailInFaults="false"/>
                    </behavior>
                    <behavior name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior">
                        <serviceMetadata httpGetEnabled="true"/>
                        <serviceDebug includeExceptionDetailInFaults="false"/>
                    </behavior>
                    <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior">
                        <serviceMetadata httpGetEnabled="true"/>
                        <serviceDebug includeExceptionDetailInFaults="false"/>
                    </behavior>
                    <behavior name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior">
                        <serviceMetadata httpGetEnabled="true"/>
                        <serviceDebug includeExceptionDetailInFaults="false"/>
                    </behavior>
                    <behavior name="Telerik.Sitefinity.Web.Services.LocalizationBehavior"></behavior>
                </serviceBehaviors>
            </behaviors>
            <services>
                <service name="SitefinityWebApp.Sitefinity.Services.Content.Events">
                    <endpoint address="" behaviorConfiguration="SitefinityWebApp.Sitefinity.Services.Content.EventsAspNetAjaxBehavior" binding="webHttpBinding" contract="SitefinityWebApp.Sitefinity.Services.Content.Events"/>
                </service>
                <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsServiceBehavior" name="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService">
                    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>
                    <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
                    <!--<endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="webBinding"
                      contract="Telerik.Sitefinity.Analytics.Infrastructure.Services.AnalyticsPermissionsService"/>-->
                </service>
                <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService">
                    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>
                    <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
                    <!--<endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="webBinding"
                      contract="Telerik.Sitefinity.Analytics.Server.GoogleAnalyticsPlugin.Services.AccountsService"/>-->
                </service>
                <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardDataBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData">
                    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>
                    <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
                    <!--<endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="webBinding"
                      contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.DashboardData"/>-->
                </service>
                <service behaviorConfiguration="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataServiceBehavior" name="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService">
                    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding" contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService"/>
                    <!-- note: To enable https/SSL support for the Analytics module, uncomment this endpoint -->
                    <!--<endpoint address=""
                      binding="basicHttpBinding"
                      bindingConfiguration="webBinding"
                      contract="Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.MapDataService" />-->
                </service>
            </services>
            <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
        </system.serviceModel>
        <!--
                    The system.webServer section is required for running ASP.NET AJAX under Internet
                    Information Services 7.0.  It is not necessary for previous version of IIS.
            -->
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules runAllManagedModulesForAllRequests="true">
                <remove name="WebDAVModule"/>
                <remove name="RadUploadModule"/>
                <remove name="Sitefinity"/>
                <remove name="SitefinityAnalyticsModule"/>
                <remove name="SitefinityAtompubModule"/>
                <add name="Sitefinity" type="Telerik.Sitefinity.Web.SitefinityHttpModule, Telerik.Sitefinity"/>
                <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI"/>
                <add name="SitefinityAnalyticsModule" type="Telerik.Sitefinity.Analytics.Server.DependencyResolution.Module.DependencyRegistrarHttpModule, Telerik.Sitefinity.Analytics.Server.DependencyResolution"/>
                <add name="SitefinityAtompubModule" type="Telerik.Sitefinity.Security.SitefinityAtompubModule, Telerik.Sitefinity"/>
            </modules>
            <handlers>
                <remove name="WebDAV"/>
                <remove name="UrlRoutingHandler"/>
                <remove name="WildCard"/>
                <remove name="WildCard32"/>
                <remove name="Telerik.Web.UI.DialogHandler"/>
                <remove name="Telerik.RadUploadProgressHandler"/>
                <remove name="Telerik.Sitefinity.FilesDownloadHandler"/>
                <remove name="Telerik.Sitefinity.LibrariesRadUploadHandler"/>
                <remove name="Telerik.Sitefinity.AsyncImageUploadHandler"/>
                <remove name="Telerik.Sitefinity.AsyncFileUploadHandler"/>
                <remove name="Telerik.Web.UI.SpellCheckHandler"/>
                <remove name="Telerik_Web_UI_WebResource_axd"/>
                <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
                <add name="WildCard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness64"/>
                <add name="WildCard32" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv4.0,bitness32"/>
                <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
                <add name="Telerik.RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>
                <add name="Telerik.Sitefinity.FilesDownloadHandler" path="Telerik.Sitefinity.FilesDownloadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Files.FilesDownloadHandler, Telerik.Sitefinity"/>
                <add name="Telerik.Sitefinity.LibrariesRadUploadHandler" path="Telerik.Sitefinity.LibrariesRadUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.LibrariesRadUploadHandler, Telerik.Sitefinity"/>
                <add name="Telerik.Sitefinity.ThumbnailUploadHandler" path="Telerik.Sitefinity.ThumbnailUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.ThumbnailUploadHandler, Telerik.Sitefinity"/>
                <add name="Telerik.Sitefinity.AsyncImageUploadHandler" path="Telerik.Sitefinity.AsyncImageUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Modules.Libraries.Web.AsyncImageUploadHandler, Telerik.Sitefinity"/>
                <add name="Telerik.Sitefinity.AsyncFileUploadHandler" path="Telerik.Sitefinity.AsyncFileUploadHandler.ashx" verb="*" type="Telerik.Sitefinity.Workflow.AsyncFileUploadHandler, Telerik.Sitefinity"/>
                <add name="Telerik.Web.UI.SpellCheckHandler" verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"/>
                <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource"/>
                <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler"/>
            </handlers>
        </system.webServer>
        <madam>
            <userSecurityAuthority realm="Sitefinity" provider="Telerik.Sitefinity.Utilities.MS.Madam.FormsUserSecurityAuthority" exposeClearTextPassword="false "/>
            <formsAuthenticationDisposition>
                <discriminators all="1">
                    <!-- This discriminator helps detect redirection to the Forms login page. -->
                    <discriminator inputExpression="Response.RedirectLocation" pattern="login.aspx\?returnurl\=" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    <discriminator type="Telerik.Sitefinity.Utilities.MS.Madam.Discriminator" all="false">
                        <discriminator inputExpression="Request.Url" pattern="atompub/.*" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    </discriminator>
                </discriminators>
            </formsAuthenticationDisposition>
            <basicAuthentication>
                <discriminators all="1">
                    <discriminator type="Telerik.Sitefinity.Utilities.MS.Madam.Discriminator" all="false">
                        <discriminator inputExpression="Request.Url" pattern="atompub/.*" type="Telerik.Sitefinity.Utilities.MS.Madam.RegexDiscriminator"/>
                    </discriminator>
                </discriminators>
            </basicAuthentication>
        </madam>
    </configuration>

  5. Roberto
    Roberto avatar
    146 posts
    Registered:
    08 Feb 2008
    24 Jun 2011
    Link to this post
    I have created an intrasite module using LINQ,  outlined some steps here:

    http://www.sitefinity.com/devnet/forums/sitefinity-4-x/sdk/how-to-create-intra-module-in-sitefinity-4-rc.aspx

    Rob
5 posts, 0 answered