Using Liquid markup to customize the formatting and placement of text in comments and email notifications

Return to top

4 Comments

  • Amanda Fleet

    This was incredibly helpful! Thank you!

    1
  • Jed Hollander

    Hi there, Aimee Spanier

     

    Is there a way to clean up this markup 

    {% for comment in ticket.comments %}

     

    Comment:

    {{comment.created_at}}

    {{comment.created_at_with_time}}

    {{comment.author.name}}

    {{comment.value}}

     

    Attachment:

    {% for attachment in comment.attachments %}

    {{attachment.filename}}

    {{attachment.url}}

     

    {% endfor %}

     

    {% endfor %}

     

    to only include the URL's for all the attachments in public comments but not the comments? The above returns all comments without an attachment as well and I'm having trouble editing it. 

    Thanks!

     

    0
  • Roman Sheydvasser

    Fyi, if you're looking for information about how to do visual formatting / styles with Liquid markup, it's just plain html.

    To bold something: <b>bold</b>

    To make something into a heading: <h1>heading</h1>

    0
  • Federico Olmus

    Here is a related article that might also be relevant: Setting up an unformatted email template

    Thank you Aimee!

    0

Please sign in to leave a comment.

Powered by Zendesk