Knowledge Base — Ektron Resources

  • Generate Class for Smart Form

    Create C# or VB.NET class to programmatically access Smart Form data. Smart Form data is XML and may be processed using XSLT, an XML parser (XmlDocument), Linq/XQuery or even as a string. It may also be deserialized into a .NET object given a C# or VB.NET class. This article describes how to generate a class from a Smart Form design.

  • Translating the application string

    This article discusses how to use the resgen.exe tool to create additional resources file that you can translate into your desired language. You can also change the native string text values as well.

    ResGen.exe is the utility that is used to generate the strings in text files into resource files. These resource files are used by .NET in a .NET application for localization. This tool can also be used to convert a resource file to a text file.

    It is included with Microsoft Visual Studio.

     

    You can also translate the files with a free program called Lutz Roeder's .net Resourcer

  • Troubleshooting the Ektron Notification Service

    This document is intended to go over steps to troubleshoot the notification service not sending emails

  • Add acceptable XSLT files to the system

    Applies to Ektron versions 8.0.2 SP5, v8.5+.

     

    Due to security reasons, external XSLT files with customized XSLT might not work with the Content Block server control's DisplayXSLT. This document describes how to add your acceptable XSLT to Ektron.

  • Restrict access to a file or folder

    How to restrict access to a file or a folder based on incoming IP addresses 

    Securing a Folder 

    1. Open IIS Manager (Start > Run > Open INETMGR and hit enter)
    2. Navigate to web site
    3. Select the folder, which needs restriction
    4. In features view double click on “IPv4 Address and Domain Restrictions
    5. In Action pane click “Add Allow Entry”
    6. Select “Specific IPv4 Address” radio button
    7. Enter IP address and click OK.
    8. In action pane click “Edit Feature Settings”
    9. Select “Deny” from the drop down and click OK

      IIS Mgr

     Securing a File 

    1. Open IIS Manager (Start > Run > Open INETMGR and hit enter)
    2. Navigate to web site
    3. Switch to “Content View”
    4. Select and right click on the file which needs restriction
    5. Select “Switch to Features View” from context menu
    6. In features view double click on “IPv4 Address and Domain Restrictions
    7. In Action pane click “Add Allow Entry”
    8. Select “Specific IPv4 Address” radio button
    9. Enter IP address and click OK button.
    10. In action pane click “Edit Feature Settings”
    11. Select “Deny” from the drop down and click OK
      Secure Content
     

  • Enabling “IPv4 Address and Domain Restrictions” in IIS manager

    How to enable “IPv4 Address and Domain Restrictions” in IIS manager (IIS 7 only)

    Enabling “IPv4 Address and Domain Restrictions” in IIS manager

    1. Open Server Manager (Control Panel > Administrative Tools > Server Manager).
    2. Expand Roles in left frame.
    3. Select Web Server (IIS).
    4. In right frame, click Add Role Services (to the right of Role Services). This opens the Select Role Services window.
      Servermgr
    5. In the Select Role Services window, under Web Server > Security, select IP and Domain Restrictions.
      Select Role Services
    6. Click the Next button.
    7. The Confirm Installation Selections window appears. Click the Install button.
    8. After the installation finishes, close all windows .

     

  • Modify Commerce Screens

    In the event that you need to change or modify your commerce screens for shipping providers, addresses etc, there are a few different options you have. 

    1. Modify the code itself
      • Install the Ektron SDK : C:\Program Files (x86)\Ektron\CMS400v86\Utilities\CMS400SDK_Setup.exe
      • This SDK comes installed with samples of the out of the box functionality. You can modify these and build or replace in the Ektron solution. For example
        • IF you would like to modify USPS shipping methods to add a new type, you can open up the USPSShipmentProvider.cs file in the SDK. Once open, you will see a bunch of lists under the static method UpsParam(). Add in your other options such as _serviceOptionList.Add("UPS_Ground_InTown", "99");
        • Add this new file to your app_code/cscode folder and you should see your changes to the options lists as you proceed through the shipping process
    2. Modify the XSLT's
      • Navigate to the following location in your site root folder \Workarea\Xslt\Commerce
      • Edit one of the files to update necessary fields or text. You can include jquery calls as well to manipulate values. Such as in the example above, you could add a "Select" option to the top of the shipping method dropdown: Pseudo code below
        • $('.shippingmethodtype').html('<option>Select</option>' +  $('.shippingmethodtype').html());
         
      • Save and Recycle the application pool. Your changes should be live. 
       
    In the event of an upgrade note that option 2 would be overwritten by the upgrade as the workarea is replaced. Please make sure you backup the files before the upgrade occurs.

     

  • Enable Verbose Logging for DxH

    This document will show the steps to enable verbose logging for the DxH to help troubleshoot a DxH connection that may not be working.

Don’t see what you’re looking for? Check out our forums. We have a large community of passionate, helpful developers.

What Do You Think of our New Design?

    

Have more to say? We’d love to hear it!