Jump to content

Differentiating between dedicated and VPS smarty


ehuk

Recommended Posts

Hi Guys,

 

I am trying to improve some of our templates, and by using a lot of:

 

{if $type eq "server"}

I managed to get stuff like bandwidth graphs, remote reboot access, IP information, dedicated server cPanel login etc.

 

But we also offer VPS Servers which also are classified as "Servers" which means having something specifically for VPS servers is a pain. I can do it via a custom field on all Dedicated + VPS products, something like

 

{if $customfields.1.value eq "VPS Server"} and {if $customfields.1.value eq "Dedicated Server"}

 

But I was wondering if there was a way to use $type.

 

Thanks

Link to comment
Share on other sites

Well for anyone who is wondering you can use:

 

{if $groupname eq "Virtual Private Servers"}

{if $groupname eq "Dedicated Servers"}

 

Obviously specifying your Group Name in the Admin section.

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