Jump to content

ViewTicket Status Background Color


FatihYldrm

Recommended Posts

This code works on supoortticketlist.tpl page but not on viewticket.tpl page.

 

<span class="label status {if is_null($ticket.statusColor)}status-{$ticket.statusClass}"{else}status-custom" style="border-color: {$ticket.statusColor}; color: {$ticket.statusColor}"{/if}>{$ticket.status|strip_tags}</span>

Link to comment
Share on other sites

This code works on supoortticketlist.tpl page but not on viewticket.tpl page.

you can't take code from one template, paste it into another template and expect it to work - the same variables are not available in all templates. :roll:

 

you'd need to add {debug} to the end of the template code to open a popup window of variables available to that template... the variable you want might be there under another name, or it might not exist at all.

Link to comment
Share on other sites

you can't take code from one template, paste it into another template and expect it to work - the same variables are not available in all templates. :roll:

 

you'd need to add {debug} to the end of the template code to open a popup window of variables available to that template... the variable you want might be there under another name, or it might not exist at all.

 

 

 

How can I use this area in the sidebar on the same page?

afaec110ad4a4b85951898a7a6cdb0da.png

Link to comment
Share on other sites

The above code on Supportticketlist.tpl page works fine but it can not assign automatic still on viewticket.tpl page.

it can - if you use the *correct* variables. :roll:

 

i've already told you about {debug} to get the correct variable; about the css classes to get the bg colors - if you know both of them, you can display the ticket status with the appropriate bg color.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated