Absolunet inRiver HTML Template Core

To better understand inRiver's HTML Template: https://community.inriver.com/product/technical-descriptions/edit-in-context-templates/

The main goal of this package is to help you develop and deploy your HTML Templates faster.

Develop your HTML Templates directly in Visual Studio

  1. Create a Web MVC project in your solution

  2. Delete all useless files/folders until you have only one Views folder.

  3. Add a reference to all the .dll and .exe files that are in the zip above

  4. Copy over to your bin/debug or bin/release all the files in the zip above, it contains the executable that will deploy the html templates (a good idea would be to copy these files as a pre-build event)

  5. Add a cshtml file under Views folder OR html file under Html folder (for IPMC only that support rest API). IMPORTANT! The file name will be your template name.

  6. Add using @using Absolunet.InRiver.HtmlTemplate.Core.Helpers in the file header. With that, you'll be able to use intellisense with TemplateHelper static class.

  7. Obviously, your HTML tag should look like: <html inriver-razor-template="true">

Deploy your HTML Template

The program Absolunet.InRiver.HtmlTemplate.Core.exe take named parameters that supports connection with Remoting Api Key or with username and password.

To deploy with API Key:

Absolunet.InRiver.HtmlTemplate.Core.exe --RemotingApiUrl apiUrl --RemotingApiKey apiKey [--HtmlTemplatesToUpdate htmlToUpdate]

To deploy with Username and Password:

Absolunet.InRiver.HtmlTemplate.Core.exe --RemotingApiUrl apiUrl --RemotingUsername userName --RemotingPassword password --RemotingEnvironment environment [--HtmlTemplatesToUpdate htmlToUpdate]

HtmlTemplatesToUpdate is an optional parameter. If provided, the application will update only the HTML templates provided. The name of the HTML Template must the name in the PIM and they must be separated by a  comma. For example, if you have Views TestTemplate1.cshtmlTestTemplate2.cshtmlTestTemplate3.cshtml and you want to update the first two, your parameter will be "TestTemplate1,TestTemplate2". Finally, if the parameter is not provided, the application will update all HTML templates.