Hello Sitefinity Team
I have defined a pluggable module. With this module I want to have the complete content of a page that is defined in Sitefinity CMS. And use that content as HTML page.
What I used till now is:
// Create the web request
wbrq = (HttpWebRequest)WebRequest.Create(cnt.NavigateUrl);
wbrq.Method = "GET";
//Read the rerturned data
wbrs = (HttpWebResponse)wbrq.GetResponse();
sr = new StreamReader(wbrs.GetResponseStream());
string strHtmlResult = sr.ReadToEnd();
where cnt.NavigateUrl is the Full NavigateUrl (included the protocol and domain) of the defined page in Sitefinity CMS.
However the problem with it, is that I receive relative paths (i.e. /website/images/logo.gif) in the returned data. When I want to use this returned data as HTML page images, css etc are not shown (of course).
I can change the master template, and all used controls to use full paths (http://localhost/website/images/logo.gif) instead of relative paths (i.e. ~/images/logo.gif).
But maybe you know another way: for instance is it possible with the Sitefinity API to get the complete content of a CMS page? And change relative paths on the fly?
Hope you can help