I am editing /usr/local/cpanel/base/frontend/jupiter/tools/index.tt . Here is the code I've edited:
This code is for adding an option in the sidebar. It was supposed to do this in cPanel Frontend UI:
but what it's doing is this:
i.e
Also, I am sorry for pasting code like this but whenever I use Code option in Editor, it does this instead of opening the code editor. Please fix it as well or let me know if it's a problem from my side!
<tr>
<td colspan="2">
<label id="lblLastLogin" class="general-info-label">[% locale.maketext("SPF and DKIM Records") %]</label>
<a href="[% CPANEL.CPVAR.dprefix _ '/email_deliverability' %]/#/manage?domain=[% domain %]" class="general-info-value">
[% locale.maketext("Click Here") %]
</a>
</td>
</tr>
This code is for adding an option in the sidebar. It was supposed to do this in cPanel Frontend UI:
<tr>
<td colspan="2">
<label id="lblLastLogin" class="general-info-label">SPF and DKIM Records</label>
<a href="https://HOSTNAME:2083/SESSION/frontend/THEME/email_deliverability/#/manage?domain=DOMAIN" class="general-info-value">
Click Here
</a>
</td>
</tr>
but what it's doing is this:
<tr>
<td colspan="2">
<label id="lblLastLogin" class="general-info-label">SPF and DKIM Records</label>
<a href="/email_deliverability/#/manage?domain=DOMAIN" class="general-info-value">
Click Here
</a>
</td>
</tr>
i.e
CPANEL.CPVAR.dprefix
is not working. It's working correctly in the whole page but while applying this custom element, it does not work. Anything I am missing from my side?Also, I am sorry for pasting code like this but whenever I use Code option in Editor, it does this instead of opening the code editor. Please fix it as well or let me know if it's a problem from my side!