K2 smartforms architecture allows you to create new Runtime sites with different authentication providers. In this post, I will be touching on how to add a new K2 smartforms runtime site. To find out how to set a different authentication mode on a Runtime site, read the post – Forms Authentication for K2 smartforms.
1. Prepare the website folder
In this section, we will duplicate the Runtime folder.
- Open a Windows Explorer and navigate K2 blackpearl’s installation folder at C:\Program Files (x86)\K2 blackpearl.
- Copy and paste the K2 smartforms Runtime folder and rename it as K2 smartforms Runtime External.
- You can close the Windows Explorer now.
2. Add a new K2 smartforms Runtime site in IIS
- Start IIS Manager and navigate to the K2 website.
- Right click on K2 website and select Add Application.
- In the New Application dialog, fill in the following and click OK.
- Alias: RuntimeExternal (You can rename this to other preferred names)
- Application pool: K2 smartforms (Select the correct K2 smartforms application pool if you have changed it during setup)
- Physical path: C:\Program Files (x86)\K2 blackpearl\K2 smartforms Runtime External (This is my path, so replace this with your path!)
- You can close the IIS Manager now.
3. Test the new K2 smartforms Runtime site
Just open a new browser and navigate to your Forms to see the result! Remember that you will need to replace the URL’s first \Runtime\ to \RuntimeExternal\ or which ever IIS path you specified above.
4. Things to take note of…
So now you have your new K2 smartforms Runtime site, you will need to remember that whenever you deploy the following artifacts, you will need to deploy them to this new folder as well.
- smartforms Themes
- Custom K2 smartforms controls
Another important thing is after an upgrade or re-run of K2 smartforms Setup Manager, it may be good to overwrite the new Runtime folder again, so that all new changes will be propagated to it.
Latest posts by Ji Kai (see all)
- Multiple records inserted with RuntimeListViewRowCount option - 30 May 2017
- Friendly Error Message on K2 smartforms - 04 May 2017
- Add company logo and change K2 login form descriptions - 02 Aug 2016