Template Manager Help {{variables}}

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • rabii
    commented on 's reply
    you are welcome

  • Brad
    replied
    Hey rabii - Thank you very much .. bang on! works expected.

    Leave a comment:


  • rabii
    replied
    hey Brad

    It is the same engine used for all. because contacts is a collection you will need to loop through it and get name as below

    PHP Code:
    {{#each contacts}} Contact name: {{name}} {{/each}} 
    

    Leave a comment:


  • Brad
    replied
    Hi Yuri
    Ah thank you - that was what I was looking for - BUT ... there is only one variable {{contactsNames}} - unfortunately the delivers [object Object] in the email - There are many placeholders containing User - before I settle in and try them all may I check if contacts are ever referred to as User ?

    Leave a comment:


  • yuri
    replied
    Hi Brad,

    They (placeholders) are the same as in PDF Templates. You can copy paste them.

    Leave a comment:


  • item
    commented on 's reply
    sorry, can't help, never try something so.
    certainly other forumeur can help.

  • Brad
    replied
    Thank you, I am looking at adding this into the template
    #Admin/templateManager/name=invitation_Meeting

    I can add a custom field and that shows but I want to customise my email regarding a meeting or a call saying Dear ... Contact First Name


    Leave a comment:


  • item
    replied
    Hi,
    just verify for "message", i think it's in meeting ? not sure but something so : {{./message}} if message is a field in meeting.
    you can have doc on github with many sample



    PHP Code:
    
    <table cellpadding="1" cellspacing="1" style="width: 100%;font-size: 12px;">
    <tbody>
        <tr>
            <td style="width:30%;;background-color: rgb(198, 177, 28); color: #ffffff;">&nbsp;Name</td>
            <td style="width:70%;;background-color: rgb(198, 177, 28); color: #ffffff;">&nbsp;Message</td>
        </tr>
    <!-- {{#each contacts}} -->
        <tr>
            <td style="width: 30%;';background-color: #F5F2D9;">&nbsp;{{name}}</td>
            <td style="width: 70%;';background-color: #F5F2D9;">&nbsp;{{./message}}</td>
        </tr>
    <!-- {{/each}} -->
    </tbody>
    </table>

    Leave a comment:


  • Brad
    started a topic Template Manager Help {{variables}}

    Template Manager Help {{variables}}

    Hi there
    Hope all is well

    Can someone point me in the right direction here, please.

    Looking at the Meeting template - I want to include a message to the attendee Contact, how do I find out the correct variables to us or what variables are available for this template?

    Many thanks
    Brad


Working...