How to customize the suspended page with account's domain name?

electric

Well-Known Member
Nov 5, 2001
780
8
318
I understand I can edit the " /var/cpanel/webtemplates/root/english/suspended.tmpl " file to customize the suspended page.

Is it possible to dynamically display the account domain name on the suspended page?

In the default template, I see there is are two dynamic tags to get the "mailto" and email address:

Code:
[% data.url FILTER html %]
[% data.name FILTER html %]
Is there a tag to just get the account domain name? (I don't want an email address.. I just want to display the suspended account's domain name.

Where can we find a list of all the available tags we can use?

Thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
975
136
168
cPanel Access Level
Root Administrator
Hey there! There isn't a way to setup multiple suspended pages. The mailto tag that you are seeing is just calling the system contact mail that's been setup in WHM, so there aren't additional "tags" that can be used in that area.

The best details on customizing that page can be found here:


and I do see a feature request for multiple pages with other options here:

 

electric

Well-Known Member
Nov 5, 2001
780
8
318
Hello,

I was not asking for multiple suspended pages. I am asking if it's possible to get the "domain name" as a tag/variable so we can display it on the web page. Clearly, if we can get the "mailto" contact email address value, then we should be able to get the domain name...

Thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
975
136
168
cPanel Access Level
Root Administrator
Multiple suspended pages would just be a slightly different way to accomplish this.

I reached out to our developers to see if I can get more details on the tag system although it can take a few days to respond. I'm going to set this ticket to "In Progress" so I can update this once I have more details from them.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
975
136
168
cPanel Access Level
Root Administrator
I did hear back from our team and there are only three variables available for the tempalte system:
  • protocol
  • name
  • url
Anything else that shows up is in the code of the page itself, and not something that can be configured through a template.