Hi everyone,
I have a loop which is displaying ticket_activity for a logged in user if they haven’t been read, this all works fine and display a list.
Now what I need to do is add a link to the main ticket, the ticket_activity is linked to a ticket.via the ticker ID/Post ID
When I use <a href="{Field url}">
the link is created for the ticket_activity post.
<Set message_owner><User email /></Set>
<If loop exists type="wcrm_ticket_activity" custom_field=wcrm_ticket_category custom_field_value=chat custom_field_2=wcrm_ticket_activity_message_owner custom_field_value_2="{Get message_owner}" custom_field_3=wcrm_ticket_activity_message_read custom_field_value_3="no" orderby=date order=desc>
<Loop>
<div class="updatedActivityItem">
<div class="staffChatList">
Message From:<Field wcrm_ticket_activity_message_from /><br />
<Field content /><br />
Relating to <a href="{Field url}">ticket</a>
</div>
</div>
</Loop>
I was thinking to set a variable like below and loop through it by checking the Post ID in wcrm_tickets against wcrm_tickets_activity_ticketid the display URL based on this but I’m not to sure the best way to work this if statement or if there is a quicker way.
I hope this makes sense, long day and eyes are getting blurry.
Thanks
Tom