Jump to content

Sidebarstats and stats variables?


Tampa

Recommended Posts

I am working on a new template based on v4, but I cannot find a full list of information contained in the $sidebarstats and $stats variable. Is there a document somewhere that lists them or can I fetch them from the system somewhere?

Link to comment
Share on other sites

11 hours ago, Tampa said:

I am working on a new template based on v4, but I cannot find a full list of information contained in the $sidebarstats and $stats variable. Is there a document somewhere that lists them or can I fetch them from the system somewhere?

just add {debug} to the sidebar.tpl template, and when you refresh the page, it should open a popup window containing most of the Smarty arrays and variables available to the page - including those you that you mentioned.

Link to comment
Share on other sites

Hm, according to that $stats.pendingcancellations should show the pending cancellation requests, but that returns nothing. Or is that $sidebarstats.services.completed? These variables seem to exist, but they return nothing when implanted into the tpl.

Link to comment
Share on other sites

{$sidebarstats.services.completed} should certainly return the correct value - and does for me locally.

with regards to $stats, isn't that only available on the client summary page? if so, you should be able to use those values in the clientsummary template, but not outside of it.

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