cancel
Showing results for 
Search instead for 
Did you mean: 

Presets.xml problem

mcasanket
Champ on-the-rise
Champ on-the-rise
Hello everyone!  Smiley Very Happy
   In one requirement, I need to show document library's root folders list on user dashboard. There will be one and only one site always. Also I need to show the site calender with events. However I have done both the things but facing problem with presets.xml file.

I have configured both the dashlets in presets.xml and put the preset.xml in tomcat\shared\classes\alfresco\web-extension\site-data\presets folder.
However the other dashlets are working fine for new users but mine two dashlets are not showing automatically for new user. He/She has to go in customize dashboard and have to add this tow dashlets.
here is the block of lines i have put in user-dashboard section of presets.xml.

       <component>
            <scope>page</scope>
            <region-id>component-1-1</region-id>
            <source-id>site/sanket/dashboard</source-id>
            <url>/components/dashlets/docLibrary</url>
         </component>   
      
       <component>
            <scope>page</scope>
            <region-id>component-1-2</region-id>
            <source-id>site/sanket/dashboard</source-id>
            <url>/components/dashlets/calendar</url>
         </component>

Please help!  Smiley Sad
Thanking you!
2 REPLIES 2

vamirr
Champ on-the-rise
Champ on-the-rise
Where in presets.xml did you put those components?

Also If the users are able to add the two dashlets via customize dashboard,  I would try changing the source-id tags to

<source-id>user/${userid}/dashboard</source-id>


 
<component>
    <scope>page</scope>
    <region-id>component-1-1</region-id>
    <source-id>user/${userid}/dashboard</source-id>
    <url>/components/dashlets/docLibrary</url>
</component>  
     
<component>
  <scope>page</scope>
  <region-id>component-1-2</region-id>
  <source-id>user/${userid}/dashboard</source-id>
  <url>/components/dashlets/calendar</url>
</component>

mcasanket
Champ on-the-rise
Champ on-the-rise
Thanks Vamirr,

   Actually there was a typo in my xml! 🙂 It got resolved!

Where in presets.xml did you put those components?
Also If the users are able to add the two dashlets via customize dashboard,  I would try changing the source-id tags to

Have a nice time!  Smiley Very Happy