|
|
Publish content to a site with ASP.NET (without PHP support)
Author: Edward Hardin Reference Number: AA-00518 Views: 12442 Last Updated: 03/11/2015 04:07 PM |
0 Rating/ Voters
|
|
Usually you need PHP installed on both websites: - Website with Knowledgebase Manager Pro instance
- Target website, where you want to publish some part of your KB
However, if target website doesn't support PHP, you can use ASP publication instead. This guide assumes that you have some knowledge of ASP and C# technologies. - Login to KMP and go to Administration > Publishing > Publications and click the "Get Code" button for your publication. It you do not have a publication yet, you can create it right now.
- Find the place where we assign some value to the $url variable.
- Copy that URL (everything between quotation marks). We will need it later.
- Download WSS.KMP.zip file below.
- Extract the WSS.KMP.dll from the downloaded file.
- Put this library to the appropriate directory of your ASP project (e.g. "Bin" directory).
- Add a reference for the uploaded library in your ASP project (for example publication.aspx.cs file).
Look at the highlighted {0} and {1} above. You need to copy-paste the URL that you got from Get Page window and insert it instead of URL in this example. The "$action" part of URL must be replaced with "{0}" and the "$getData" part must be replaced with {1}
- Now we can actually publish KB content to our web page.
This is a basic ASPX page layout. Parts that we added to the page to publish KB content are highlighted.
|
|
|