cancel
Showing results for 
Search instead for 
Did you mean: 

package Alfresco 4 customizations in jar

shazada
Star Contributor
Star Contributor
Hi,

Let me first start, that's extremely unclear how to package customization for Alfresco 4 version. I've checked the wiki/blogs/docs and It's still not working.

I've made modifications that the "create site" is disabled for a certain group or admin and I've changed the copy URL. So I've got a working jar file which deploys well in 3.4. And in 4 the disablement of "create site" is working, but changing the copy url not because that freemarker is pointing to a client side javascript.
I'd like some help to know how to deploy this in Alfresco 4.


This is my current folder structure in the jar file:
    alfresco
      web-extension
        site-webscripts
          org
            alfresco
              components
                document-details
                  document-links.get.head.ftl
                  document-links.get.html.ftl
    META-INF
      extras
        components
          document-details
            document-links.js
            document-links-min.js
The document-links.get.head.ftl points to my modified client-side Javascript.
I've tried a lot, even putting a .xml file with the module and extension, but it's not working.

Somehow Alfresco 4 isn't picking up my client-side Javascript.
1 REPLY 1

shazada
Star Contributor
Star Contributor
I did something stupid, I copied the .head file from Alfresco 4 and referred to my client-side JS. And it wasn't including /res/ as path.

Hence Alfresco couldn't find the js  Smiley Surprisedops: