Hi all, I would like some advise for integrating html content in an iView.
I've seen all topics regarding this topic, but still havent found what I'm looking for.
The solution of uploading a html document in a KM repository and after that creating a KM document iView seems pretty good. But it's not working for diplaying images or stylesheets in that html, though these are stored in the same KM folder.
In fact what I would like to do is to integrate HTML content as part of a developediView ( for example writing code to put the html content in a HTMLB group control). I dont want to use URL iView, or an iVIew that contains only the html document.
And of course the html content file to be stored in KM or irj/root, and not in the application iView.
Could this be possible? Thanks.
Best regards
Raluca
You could do this by using a variety of methods
1) you could store the html document in KM and then use the KM APIs to retrieve the resource and get the content via a stream. You could then store this in the iView as a String or StringBuffer and then simply output this in either the iViews jsp or from the AbstractPortalComponent using the response.write(myStringBuffer.toString())
2) you could retrieve the content using a File object and retrieve the stream using the objects APIs and then do the same as number 1
Perhaps this can help
Darrell
Hi, thanks for replying.
Your solution seems right to me,
but I think in this case I could get a display of a simple text in the iView, but not with the stylesheets, images or formatting of the original html. Maybe using textView, but in this case formatting is also a problem.
I tried also with <%@include file=""%> in jsp component but I couldnt get the path of the html file from CM or irj/root. Besides, in this case I am also in doubt about recognizing stylesheets.
I am really confused about integrating html content in an iView.
Best regards.
Add a comment