cancel
Showing results for 
Search instead for 
Did you mean: 

Calendar Start Day

nathan_m
Champ in-the-making
Champ in-the-making
Hello,

New to Alfresco here, and looking to deploy it to a group soon.  Can anyone tell me how to change the starting day of the week in the calendar?  My current calendar starts the week with Monday, but we would like it to use the standard week (starting with Sunday, ending with Saturday).  Is there a way to change this?
2 REPLIES 2

sujaypillai
Confirmed Champ
Confirmed Champ
Rename the file custom-slingshot-application-context.xml.sample to custom-slingshot-application-context.xml
under <ALF_HOME>\shared\classes\alfresco\web-extension

Add the below lines -

<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:hz="http://www.hazelcast.com/schema/config"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                http://www.hazelcast.com/schema/config
                http://www.hazelcast.com/schema/config/hazelcast-spring.xsd">
  
   <bean id="webscripts.resources"     
         class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.web-extension.messages.customslingshot</value>
       <value>webscripts.messages.webscripts</value>
            <value>alfresco.messages.common</value>
            <value>alfresco.messages.slingshot</value>
         </list>
      </property>
   </bean>
</beans>

Create a new file customslingshot.properties under - <ALF_HOME>\tomcat\shared\classes\alfresco\web-extension\messages

Add the below lines-

calendar.widget_config.start_weekday=0

Give a restart to your Alfresco server and make sure you clear your browser cache.


Thanks,

nathan_m
Champ in-the-making
Champ in-the-making
Rename the file custom-slingshot-application-context.xml.sample to custom-slingshot-application-context.xml
under <ALF_HOME>\shared\classes\alfresco\web-extension

Add the below lines -

<?xml version='1.0' encoding='UTF-8'?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:hz="http://www.hazelcast.com/schema/config"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                http://www.hazelcast.com/schema/config
                http://www.hazelcast.com/schema/config/hazelcast-spring.xsd">
  
   <bean id="webscripts.resources"     
         class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
            <value>alfresco.web-extension.messages.customslingshot</value>
       <value>webscripts.messages.webscripts</value>
            <value>alfresco.messages.common</value>
            <value>alfresco.messages.slingshot</value>
         </list>
      </property>
   </bean>
</beans>

Create a new file customslingshot.properties under - <ALF_HOME>\tomcat\shared\classes\alfresco\web-extension\messages

Add the below lines-

calendar.widget_config.start_weekday=0

Give a restart to your Alfresco server and make sure you clear your browser cache.


Thanks,



sujaypillai, I made this change, but my Calendar is still starting on Monday.  Would it make any difference that I'm running 4.2.a?