cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with $ substitue variables

kwantm
Confirmed Champ
Confirmed Champ
Hi,

iam having problems with the $ syntax in email notifications. When i use the following template for my email notification the $ variables aren't substituted with the REAL values. So my resulting mail is the same as the template..

How must I use these $ substitute variables?????


regards,,
Marc de Kwant
wowww.nl

template in question =>

ls,

Het document ${document.name} is toegevoegd/gewijzigd door ${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>.

Je kan dit document bekijken via de volgende link: http://alfreso.wowww.nl${document.url}

Met vriendelijke groeten,

wowww
12 REPLIES 12

davidc
Star Contributor
Star Contributor
Can you provide more context please?

Where are using this template?  How are you sending the mail?

kwantm
Confirmed Champ
Confirmed Champ
Hi,

Iam using the following template

ls,

Het document ${document.name} is toegevoegd/gewijzigd door ${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>.

Je kan dit document bekijken via de volgende link: http://alfreso.wowww.nl${document.url}

Met vriendelijke groeten,

wowww


This is a e-mail notification content rule.

This is a Email action.

This is created using the rule-wizard of the WCM.

regards.

Marc
wowww.nl

kwantm
Confirmed Champ
Confirmed Champ
Also, if I use the default email template then I get nice substitution of parameters. ($document.name} becomes mydoc.doc.

But when I use the text above, then no substitution occurres. How is this possible. Is it just buggy or Am I doing somethig wrong?????

Must I create my own templates and use that, or can I type a tekst into the textarea and use it

regards

Marc

kevinr
Star Contributor
Star Contributor
That is correct, you will need to create a template for this. If you want that feature it could be done, please raise a JIRA request.

Thanks,

Kevin

kwantm
Confirmed Champ
Confirmed Champ
I will make a template for this. I might submit a Jira, but at the moment I do not know how to do this.


regards

Marc de Kwant
wowww.nl

kritischer
Champ in-the-making
Champ in-the-making
I'm glad to have found this thread. I'm experiencing the same problem…

However. I have created an email template and have uploaded to the correct Email Template folder with the .ftl extension.

What is concerning me is that when I go to create the content rule for sending an email to a specified user I do not see my email template under the list of templates for use. Even worse, I don't see ANY! Even though there are a number of them in the Email Templates space.

Let me first mention that I have not applied a workflow to this space. I need to only inform certain users that a document needs to be looked at by them.

I wanted to apply a simple workflow but since the documents that need to be reviewed need to be reviewed by several people, copying them to a space would create duplicates of the same file within the "approved" or "rejected" folders.

Please help. Once again, my problem is that no templates are available to insert when I try to add a content rule to email specific users when a file is added to a staging folder.

Thanks in advance. Alfresco has been good to me so far.

kwantm
Confirmed Champ
Confirmed Champ
Regarding the non appearance of your template. i have restarted my alfresco server to be able to see my own template.

I hope this will help you.

regards,

Marc
wowww.nl

kritischer
Champ in-the-making
Champ in-the-making
Sadly, restarting the instance of Alf did nothing. :?:  :cry:

kwantm
Confirmed Champ
Confirmed Champ
Did you upload it through alfresco or just the OS to put it into the right folder. You must use alfresco (dictionary) to upload the new template. Otherwise it will not register in alfresco.

regards,

marc
wowww.nl