Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Version 46 (modified by tomas.karlsson@…, 4 years ago) (diff)

--

Installation

Code installation

  1. Download source code
  2. Make it compile (check references to EPiServer, EPiServer.UI and EPiServer.Web.WebControls?)
  3. Publish it into a site of EPiServer CMS 5. It will:
    1. Create a folder called HKRM that contains all pages and user controls
    2. Place HKRM.dll in /bin
    3. Place HKRM.css in /App_Themes/Default
  4. Import the file HKRM_pagetypes.episerverdata to get necessary page types.
  5. Disable anonymous access in the HKRM part of the site.
    1. Right-click HKRM in IIS and choose Properties
    2. Go to tab Directory Security and click edit under Authentication and access control
    3. Uncheck Enable anonymous access
    4. Click OK
  6. Add a reference to your master page, choose one of following:
    • Add MasterPage and Theme to <pages masterPageFile="YourFile.master" in web.config
    • Add a reference to your MasterPage in HKRM/Pages/Default.aspx and HKRM/Pages/Empty.aspx
  7. In order to get favorites to work, add this snippet to web.config
    <system.web>
      <profile enabled="true" defaultProvider="SqlProfile" automaticSaveEnabled="true">
        <properties>
          <!-- HKRM Properties -->
          <add name="ResourceFavorites" serializeAs="Binary" type="System.Collections.ArrayList" provider="SqlProfile" />
        </properties>
      </profile>
    </system.web>
    
  8. The project need to be targeted for .NET 3.5. If not check Troubleshouting on this page.
  9. Create the base structure on your site:
    • [HKRM] Start page wherever you want it in your structure
    • You need a [HKRM] Resource container below the Start page and optionally also a [HKRM] Location container
  10. To get styles to work properly you might have to move the HKRM.css to your theme directory and change or add the Page property Theme in /Pages/Default.aspx.

Import of data

[HKRM] Import is located in Admin->Tools section.

[HKRM] Import tool

Import order:

  1. Import the Groups and Resources.
  2. Set/check Groups and Resource properties.
  3. Set rights on Groups/Resources (this should be done before importing the actuall bookings to get correct rights on each booking, you can also check the Group Rights checkbox to make bookings below a resource to be editable by all that have access).
  4. Import bookings. This steps will look up the oldID of a resource and also try to find oldCreatedBy user among the site users.

Import data format:

<?xml version="1.0" encoding="utf-8"?>
<Root>
  <Group Name="GROUPNAME">
    <Resource Name="NAME" oldID="ID" Location="LOCATION" Description="DESCRIPTION" Capacity="CAPACITY" />
  </Group>
  <Booking CreatedBy="USERNAME" oldID="ID" Coffee="NUMCOFFEE" Reason="REASON/COMMENT" UsedBy="USERNAME" StartDate="YYYY-MM-DD HH:mm:ss" StopDate="YYYY-MM-DD HH:mm:ss" />
</Root>

Troubleshooting

  • If your website not is targeted for .NET 3.5 this might help you, add to web.config:
        <compilation defaultLanguage="c#" debug="false">
          <assemblies>
            <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </assemblies>
        </compilation>
    
    and
        <pages ... >
          <controls>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
          </controls>
        </pages>
    
    or change Application property "Target Framework" to .NET 3.5 in your project.
  • Make sure you just have one language below the [HKRM] Start page to avoid several language versions of resources and bookings.
  • Webservice failure fix: Sometimes the webservice fail to work, problem is right now solved by changing order on the lines WebServiceHandlerFactory-Integrated and ScriptHandlerFactory in web.config.

Attachments