Applies to: Jamroom 7.0+ Last verified: 2026-10-24
  • What it does

    {debug} opens a window that lists every variable the template has, with its value. Use it while you build a template, to find the names of the values you need.

    {debug}
  • Put it anywhere in a template, load the page, and allow the popup in your browser. Remove it when you're done: every visitor would get the window.

  • Variables and arrays

    • A variable has one value. {$jamroom_url} shows your site's address.
    • An array holds many values. {$_conf} alone shows just "Array". Show one value with a dot and its key: {$_conf.jrCore_system_name}.
    • Loop over an array with {foreach}:
    {foreach $_conf as $key => $value}
        {$key} = {$value}<br>
    {/foreach}
  • Variables every template has

    Variable What's in it
    $_conf The site's settings: every module's Global Config, as (module)_(setting)
    $_user The user looking at the page: their user and profile fields. Empty keys for visitors.
    $_post Values from the address and forms. yoursite.com/music/tab=new gives {$_post.tab} = new.
    $_mods The installed modules
    $jamroom_url Your site's address
    $current_url The address of this page
    $page_title The page title
  • On profile pages

    Profile templates get the profile's fields as variables: {$profile_name}, {$profile_url}, {$_profile_id}, {$profile_quota_id}, and any field added with the Form Designer. $profile_name is for showing; $profile_url is the URL-safe version.

    Don't confuse them with $_user: on someone else's profile, $_user is you and the profile_ variables are them.

  • In lists

    A list template made by {jrCore_list} gets the items in $_items, and paging details in $info. Put {debug} in the list template to see them.

Tags