cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating external dynamic web content (e.g. weather widget) in Alfresco using plain HTML

borre
Champ in-the-making
Champ in-the-making
Hello,
I'm new to Alfresco, and trying to use 5.0d community edition as an alternative to SharePoint.
The environment looks promising. I'm trying to figure out whether or not it is possible to integrate external dynamic content on Wiki pages or web view dashlets.
I'm aware that I'm not the first one to ask about this topic, but I didn't find a clear answer to my questions at the end of this message, and I also read that the Alfresco behavior regarding this evolves (e.g. at some point in time it appears to have worked in Wiki context but not in Blogs). So I'm looking for a clear overview of what's currently possible regarding integration of external dynamic content (i.e. generated on demand) via HTML, as well as a wise way to address it in my case.

Here's an example of HTML content I'm trying to embed:

<!– weeronline widget –>
<object type="text/html" width="355" height="290" data="http://www.weeronline.nl/Go/ExternalWidgets/Weather?settings=Ad%2FtPQA%3D">
</object>
<!– weeronline widget –>


I've tried to embed it in two ways:
1) In a standard Wiki page within Alfresco. The expected result shows up when I initially add this HTML code in Alfresco's HTML editor (accessible via 'view', 'source code'), but the HTML tag 'object' gets stripped when the content is saved.
2) By publishing the HTML file in Alfresco and referring to that in a web view dashlet. The HTML tag 'object' is not published to the client browser in that case.

In short, neither of the two scenarios works, because the HTML tags used get stripped off by Alfresco (see source in client browser).
I've tried using 'iframe' instead of 'object' before, but with the same result.

I've read some information on Alfresco's HTML processing policy on these blog pages
http://blogs.alfresco.com/wp/kevinr/tag/alfresco/
http://blogs.alfresco.com/wp/kevinr/2012/06/19/configuring-the-share-html-processing-blackwhite-list...

That makes me wonder:
1) What is a proper way to approach this kind of referral to external content in Alfresco, and
2) Should I not even want to this kind of integrating external content?

Thanks in advance for sharing your view on what is wise here!
2 REPLIES 2

lesignor
Champ in-the-making
Champ in-the-making
I have the same requirement.

Did you find a solution ?

muralidharand
Star Contributor
Star Contributor
Hi,
I used web view dashlet and I added the URL as http://www.weeronline.nl/Go/ExternalWidgets/Weather?settings=Ad%2FtPQA%3D and render properly to me.
Refer the attached.
Internally web view dashlet uses iframe to render the contents, here is the code.

<iframe id="page_x002e_component-1-1_x002e_site_x007e_ravei-ste_x007e_dashboard_x0023_default-iframe" class="iframe-body" frameborder="0" scrolling="auto" width="100%" height="100%" src="http://www.weeronline.nl/Go/ExternalWidgets/Weather?settings=Ad%2FtPQA%3D"></iframe>



Please let me know, if you're looking something different.