Calling Kentico from non Kentico web application

Neelesh Malvi asked on February 26, 2016 14:11

I have a one non kentico web application which calling a page which is present in Kentico site. For example, TestPage. I am calling this page from Non Kentico web application. For example "cmsdev.ingrammicro.dmz/cms/Content-Pages/TestPage.aspx".

We are using ARR to route our request from non Kentico web application to Kentico application. On TestPage.aspx we have EditableText web part which contains some plain text,anchor tag and image.

How can i get the these contents from editable text web part in Kentico and where?? OR Can i get the these contents separately or i get complete HTML??

Recent Answers

Trevor Fayas answered on February 26, 2016 14:47 (last edited on March 24, 2018 12:15)

To make sure i understand, you want to grab Kentico content (on a page) from a Non Kentico site and pull it in?

There's a couple ways to do this. If you purely want to grab the webpart's content (html), what i would recommend is use my "Webpart to Api Tool" in the marketplace. You can point it to the web part you want the content, and the tool will clear the entire page except for that content and 'spit it out' for you.

You may need to adjust the Visibility on the Converter to a macro like {% !string.IsNullOrWhiteSpace(QueryString.GrabWebPart) && QueryString.GrabWebPart=="MyWebPart" |(user)zbynekh|(hash)62803c8860e4a4bcd5a86db476b7fdb4796eed2b39cf8f309a1b3e2ba8f0a259%} so you can call from the external page "cmsdev.ingrammicro.dmz/cms/Content-Pages/TestPage.aspx?GrabWebPart=MyWebPart" using an jquery AJAX Call and just place the return data (the html) where you want in the page.

The Webpart to API Converter's only 'flaw' is currently it doesn't work on cached widgets/webparts, so just disable caching on it.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.