cancel
Showing results for 
Search instead for 
Did you mean: 

Can i have dashlets with iframe?

rojar
Champ in-the-making
Champ in-the-making
Hi Everyone,
I am new to Alfresco. I am have added custom dashlets to alfresco share. My custom dashlet content is an iframe with src pointing to a valid URL(Web Page). When I load this dashlet it loads properly but other dashlets do not load properly. what could be the reason behind this???

Noite : When I remove iframe tag from helloworld.get.html.ftl file and restart alfresco everything works fine.

Sample  Code:

helloworld.get.desc

<webscript>
   <shortname>Hello World</shortname>
   <description>Hello World Dashlet</description>
   <family>dashlet</family>
   <url>/components/dashlets/hello-world</url>
</webscript>

helloworld.get.html.ftl

<div class="dashlet">
  <div class="title">${msg("hello.world")}</div>
  <div id="helloworld" class="body scrollableList">
    <iframe style="height: 100%; width: 100%;" src="http://localhost:9999/WebClinch/userAccount.jsp'/>
  </div>
</div>

helloworld.get.properties

hello.world = Hello World

Can I load multiple dashlets with each dashlet having an iframe pointing to custom web apps?


Thanks a lot…..
Rojar
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
Pretty sure you can't close an <iframe> tag like that. Try <iframe ….></iframe>

Mike

Hello ,


I am uploading a HTML file that contain html tag. When I download this file from share than Iframe tag is removed from html file and rest file remain same…

But I am able to download correctly from Alfresco DM.

Have any idea ?

As a quick thought, i would suggest you to observe the different webscript calls (through firebug) made when you click on download from alfresco share. You should get some idea from it.

Also, You may want to go through the following blog. It may be helpful to you and can give pointers to you for fixing this. http://blogs.alfresco.com/wp/kevinr/2012/06/19/configuring-the-share-html-processing-blackwhite-list...

Hope this helps.

rojar
Champ in-the-making
Champ in-the-making
bullseye…… Smiley Happy Smiley Happy


Thanks a lot Mike……..