cancel
Showing results for 
Search instead for 
Did you mean: 

Path to capture custom icon files, rule-details.get.head.ftl, rule- edit.get.head.ftl?

mtw999
Champ in-the-making
Champ in-the-making
Hello,

I'm relative newbie to Alfresco. I've been working through some of the examples from Alfresco Developer Series and other areas and I had some questions about how action icons and files to expose custom client component are "found" by Alfresco. I have a custom icon but it only seems to get piked up if I place it in webapps/share/components/documentlibrary/actions it is displayed. However if I put it under my directory where I put my stuff: config-share/alfresco/web-extension (or some subdirectory of this), it is not being read by Share.

Same question for files to expose custom client component (rule-details.get.head.ftl, rule-edit.get.head.ftl), they are not being read if I have them under my directory where I put my stuff: config-share/alfresco/web-extension

Is there a way I can see what paths Alfresco is searching/resolving? I would assume there are path definitions somewhere, but I'm not sure where. Is there anything else I should be aware of?
If I have these files under subdirectory of config-share/alfresco/web-extension, do I need to specify the path?

Going from Alfresco Developer Series Custom Action examples, it does not seem to be the case.

Mike
1 REPLY 1

muralidharand
Star Contributor
Star Contributor
Hi,
There are some extension path conventions to be used to load customization or extensions.

<strong>Custom FTL files:</strong>

For example :
   To load your custom ftl files, it should be placed under web-extension folder of Share application. In your case, you need to put
the ftl files in the following folder to load it.

C:\Alfresco42d\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\rules\rule-details.get.head.ftl
C:\Alfresco42d\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\rules\rule-edit.get.head.ftl


To load custom or extended webscripts, i.e ftl files, server-side javascripts, xml & properties files should be placed under
C:\Alfresco42d\tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension\
directory.
And, if you're overriding existing alfresco web-scripts, maintain the same folder strcuture under web-extension directory.

<strong>Custom Images / CSS: </strong>
As per my knowledge, there is no specific extension path defined for client side javascript, css, or images.
To load your custom images,idenify the css class where the images are used, duplicate the css, modify it according to your wish,
and place them into same directory where you found the original css.
Now, identify where the original css has been used (i.e. basically identify the ftl file)  remove the original css link ,
add your css link and place the ftl file in the web-extension path.

Hope this helps you !