Jump to content

Trying to display services on homepage


Recommended Posts

I am trying to develop my own client panel theme and need to display a list of servers that a client has.

 

I need this to be available on all pages. I am trying to make a menu dropdown where it will list all the services.

 

This is my attempt but it did not work. It only works when i load the products page.

 

{foreach from=$services item=service}
    <li>
          <a href="clientarea.php?action=productdetails&id={$service.id}">{$service.domain}</a>
    </li>
{foreachelse}
    <li>
         <a href="#">none</a>
    </li>
{/foreach}

 

It is searching for services but cannot find any and keeps displaying none. Why can't it find the client's services?

 

Also, how do i make this more specific? I would like to list only the client's shared hosting plans under shared hosting and same for their dedicated and VPS plans that they have.

 

Thanks in advance.

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