cancel
Showing results for 
Search instead for 
Did you mean: 

to edit 'notify_user_email.html.ftl' which file I should ed

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
I am using Alfresco-community-4.0.c
I am doing some R&D
For a folder I created a rule in which, a action is defined. This action sends email, for the messaging part I have chosen email template
"notify_user_email.html.ftl". Later when I check in  a file to this folder I get email notification with deatails and value such as URL , document name , who had checked in etc

Now for exploring  I copied the contents of "notify_user_email.html.ftl" to another file, discarded the template and then copied back the contents of the "notify_user_email.html.ftl" to the message body. In this case when I check in any file to the folder I get email notification, but I do not get any value for the parameters. I get the paratmeter (eg ${person.properties.firstName} <#if person.properties.lastName?exists> ${person.properties.lastName} has added a new content item, ${document.name}, in the ${document.siteShortName!""} site.) not the value

As for trouble shooting and to look further I searched for "notify_user_email.*" and I have found the file "notify_user_email.ftl" in "/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/email
"
  My doubt is that
(1)Is this file "notify_user_email.ftl " in /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/email/ has anything to do with the template "notify_user_email.html.ftl"
(2) If I want to edit  "notify_user_email.html.ftl" which file I should edit
(3) Why the code which I have pasted after discarding the template did not display the result
Guidance and advice requested
Thanks
Joseph John
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
The notify_user_email.html.ftl file lives here. If you want to change it, just edit it and check it back in.

Alternatively, you could copy it, give it a new name, and then edit the new file. Then, in the rule configuration, instead of selecting the notify_user_email.html.ftl template, select your new one.

Jeff

jonatas_rc2netw
Champ in-the-making
Champ in-the-making
good afternoon,

I too have an a action to send email when an file input in an directory in alfresco share.

use in template notify_user_email.html.ftl for test, but works when admin only move to file.

in other user no function. log:
at freemarker.ext.beans.BeanModel.get(BeanModel.java:224)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Environment.process(Environment.java:199)
at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:202)
… 43 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:870)
at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:277)
at freemarker.ext.beans.BeanModel.get(BeanModel.java:184)
… 52 more
Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 01021969 Acesso negado. Você não tem as permissões necessárias para efetuar esta operação.
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:69)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy8.getPrimaryParent(Unknown Source)
at org.alfresco.repo.site.SiteServiceImpl.getSiteNodeRef(SiteServiceImpl.java:1195)
at org.alfresco.repo.site.SiteServiceImpl.getSiteNodeRef(SiteServiceImpl.java:1198)
at org.alfresco.repo.site.SiteServiceImpl.getSiteNodeRef(SiteServiceImpl.java:1198)
at org.alfresco.repo.site.SiteServiceImpl.getSite(SiteServiceImpl.java:1170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:47)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:64)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:67)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy86.getSite(Unknown Source)
at org.alfresco.repo.template.TemplateNode.getShareUrl(TemplateNode.java:655)
… 59 more
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:398)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
… 94 more

errors of lingue sorry.
Thanks
Jonatas
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.