Arnaud Lier Posted December 14, 2019 Share Posted December 14, 2019 Hello, is it possible to modify the label from the recent tickets panel on the client area home ? Now it's something like <label class="label" style="background-color: #2DCE89">Open</label> but i want to edit it to <label class="badge" style="background-color: #2DCE89">Open</label> Thank you for your help. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 15, 2019 Share Posted December 15, 2019 16 hours ago, ZeProf2Coding said: Hello, is it possible to modify the label from the recent tickets panel on the client area home ? not easily - there's no file that you can edit to tweak these panels as their generation will be hardcoded within WHMCS. I suppose the native way would be a homepagepanels hook, though you'd have to loop through the children of the panel and change the html code within each (string replace) - then set the children with the updated content. another way would be to edit the clientareahome.tpl template and use a Smarty replace on the appropriate variable - though if this is only to occur for this one panel, that code would need to be wrapped within an if statement. 0 Quote Link to comment Share on other sites More sharing options...
Arnaud Lier Posted December 15, 2019 Author Share Posted December 15, 2019 Yeah I just did this and it works : {$childItem->getLabel()|replace:'class="label"': 'class="badge"'} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 16, 2019 Share Posted December 16, 2019 23 hours ago, ZeProf2Coding said: Yeah I just did this and it works yeah, that's how I did the screenshot. 🙂 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.