cancel
Showing results for 
Search instead for 
Did you mean: 

Dash let not displayed

samz
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

samz
Champ in-the-making
Champ in-the-making
this issue got solved when i gave full path for my js and css files from yahoo.
i  am sure there will be another way to  call them in my ftl file in alfresco.

thanks