AnsweredAssumed Answered

Dash let not displayed

Question asked by samz on May 9, 2011
Latest reply on May 11, 2011 by samz
Hi all,

I am new to alfresco and i created a Calender dashlet for my project.
This is a simple yui calender in an html file which i included in my ftl file.

My ftl code is (calender.get.html.ftl):-

<div class="dashlet">
<#include "calendar.html">
</div>

My html code is (calendar.html) :-

<div class="yui-skin-sam">

<style type="text/css">

body {
   margin:0;
   padding:0;
}
</style>

<link rel="stylesheet" type="text/css" href="fonts-min.css" />
<link rel="stylesheet" type="text/css" href="calendar.css" />
<script type="text/javascript" src="yahoo-dom-event.js"></script>
<script type="text/javascript" src="calendar-min.js"></script>

<div id="cal1Container"></div>

<script type="text/javascript">
   YAHOO.namespace("example.calendar");
   YAHOO.example.calendar.init = function() {
      YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");
      YAHOO.example.calendar.cal1.render();
   }

   YAHOO.util.Event.onDOMReady(YAHOO.example.calendar.init);
</script>

<div style="clear:both" ></div>

</div>

the code of xml file (calender.get.desc.xml):-

<webscript>
   <shortname>Calender</shortname>
   <description>Calender Dashlet</description>
   <family>user-dashlet</family>
   <url>/components/dashlets/calender</url>
</webscript>

all the files css and js files are inside the dashlet folder Calender_Dashlet.

but only upper part of the extdernal div is displayed on my dashboard, no error is displayed.
please help

thanks,
samz

Outcomes