public
Description: Textpattern plugin: Customizable dashboard.
Homepage:
Clone URL: git://github.com/jmdeldin/jmd_dashboard.git
name age message
file README.textile Loading commit data...
file dashboard.php
README.textile

jmd_dashboard: Customizable dashboard

Forum thread, hg repo

To modify the dashboard, edit the form jmd_dashboard. This form can contain Textpattern and plugin tags.

Upgrading from 0.2

The tab-editing interface was removed, so add the following to your dashboard form, save, and reload your dashboard to remove the unnecessary record.

<txp:php>
if (safe_field('name', 'txp_prefs', 'name = "jmd_dashboard_lang"'))
{
    safe_delete('txp_prefs', 'jmd_dashboard_lang');
    echo "DB updated.";
}
</txp:php>

Enabling the dashboard for other users

By default, the dashboard is only available for Publishers. To enable the dashboard for all users, edit the add_privs() line:

add_privs('jmd_dashboard', '1, 2, 3, 4, 5');

User roles are explained at the Textbook

Tag reference

<txp:jmd_dashboard_edit type="article|comment">edit</txp:jmd_dashboard_edit>

This tag outputs an edit link for articles and comments. It must be called by article_custom or recent_comment in either a form or a container tag.

Attribute Available values Default value Description
id int discussid or thisid If unset, the plugin uses the current article or comment ID.
type article, comment article Creates a link to the edit screen of whichever type is set.

<txp:jmd_dashboard_lastmod format="strftime" gmt="1"/>

This tag displays the last modified date based on the most recent article.

Attribute Available values Default value Description
format strftime %Y-%m-%d Date format.
gmt 1, 0 0 If set (1), the date is adjusted according to GMT.