cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.4b Share templates and caching?

gregbpopstar
Champ on-the-rise
Champ on-the-rise
When I make changes to Share page templates in Alfresco 3.4, I have a problem seeing my changes even after taking steps to disable caching.

I've read in Kev's Blog that you are supposed to put this:


      <config replace="true">
         <flags>
            <!– Developer debugging setting - DEBUG mode for client scripts in the browser –>
            <client-debug>true</client-debug>

            <!– LOGGING can be toggled at runtime when in DEBUG mode (Ctrl, Ctrl, Shift, Shift).
                 This flag automatically activates logging on page load. –>
            <client-debug-autologging>false</client-debug-autologging>
         </flags>
      </config>

       <config evaluator="string-compare" condition="WebFramework">
           <web-framework>
               <!– Autowire Runtime Settings –>
               <autowire>
                   <!– Pick the mode: development, preview, production –>
                   <mode>development</mode>
               </autowire>
           </web-framework>
       </config>
in share-config-custom.xml, but it seems that I still have caching issues even after doing this.

This information was for Alfresco 3.3.  Is this no longer valid for Alfresco 3.4? 

If, as a quick test, I make any change to a template page like removing a region (like the toolbar on the document library) then do a script refresh, I am not seeing that change even after I restart the Share webapp.

Someone please toss me a few suggestions.

Thanks
6 REPLIES 6

kevinr
Star Contributor
Star Contributor
Yes it is still valid for 3.4.

>If, as a quick test, I make any change to a template page like removing a region (like the toolbar on the document library) then do a script refresh, I am not seeing that change even after I restart the Share webapp.

Even *after* you restart? Are you sure you have copied over the files you have changed….? i.e. are you running with an exploded war file?

gregbpopstar
Champ on-the-rise
Champ on-the-rise
My bad.  I was expecting different changes and didn't see the subtle change I'd actually made.  I decided to really tear up the template and see what happened.  Once I went crazy on it my mistake became clear.

kevinr
Star Contributor
Star Contributor
OK no problem Smiley Happy

aascensao
Champ in-the-making
Champ in-the-making
Hi,

I'm dealing with some issues myself. I want to add a button next to 'create folder' that will let me create a folder based on a template, in Share. My main issue, at the moment is to add a button, because I've allready made the script to create a folder based on template.

Any help?

Best regars,
André Ascensão

kevinr
Star Contributor
Star Contributor
That is not related to this issue. There are lots of examples of buttons and button events in the code.

aascensao
Champ in-the-making
Champ in-the-making
Sorry kevinr,

I've seen some examples of that code  refer, but I've been not able to "see" the changes in Share page as refered in this thread by the first user.
Thank you anyway.

André Ascensão