Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: jmd_dashboard: Customizable dashboard
thanks for responce.
it’s hard for me to do what you write. because i dont have enough skills to work manually with javascript.
<txp:txp_me />
Offline
Re: jmd_dashboard: Customizable dashboard
Hello Jm I’m not sure if you are still active on this plugin…
Implementing it and it fires this error on the dashboard page:
Notice: Unknown image. in /pathto/textpattern/publish/taghandlers.php on line 156
Any clue ?
Thanks !
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
Re: jmd_dashboard: Customizable dashboard
robin746 wrote:
The help for this plugin has the following line in its form example:
bc. <txp:article_custom form=“jmd_dashboard_pending” status=“pending”/>
However, article_custom does not work with status set to “pending”. Only for “live” and “sticky”. I have tested this.
Rather unfortunate, IMO. maybe someone with more skillz can tell me how to hack that tag to work as shown above.
P.S. Nice plugin!
Does any one have a solution to this? I grabbed the plugin to enhance the workflow for my editors and being able to display a list of pending articles is the most important aspect of this. The status attribute of article_custom has only ever allowed the values “live” or “sticky”. So how can I pull this off?
Last edited by th3lonius (2011-02-02 01:34:28)
Offline
#52 2011-02-02 01:53:56
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,311
Re: jmd_dashboard: Customizable dashboard
Untested:
<txp:php>
$query = mysql_query("SELECT * FROM `textpattern` WHERE `status` = '3'");
</txp:php>
I think pending should be 3, top to bottom.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: jmd_dashboard: Customizable dashboard
th3lonius
Or try (also untested):
<txp:php>
$rs = safe_rows('*,
unix_timestamp(Posted) as uPosted,
unix_timestamp(LastMod) as uLastMod,
unix_timestamp(Expires) as uExpires',
'textpattern',
'status = 3');
foreach ($rs as $row) {
populateArticleData($row);
echo output_form(array('form' => 'your_article_list_form'));
}
</txp:php>
Hopefully that’ll list the pending items using the tag layout defined in your_article_list_form
but I don’t know if it works.
Last edited by Bloke (2011-02-02 02:05:11)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online
Re: jmd_dashboard: Customizable dashboard
Thanks guys!
Offline
Re: jmd_dashboard: Customizable dashboard
If any jmd_dashboard users are interested, I was able to make this work with the new ‘Home’ tab feature.
Offline
Re: jmd_dashboard: Customizable dashboard
In case this helps anybody: I couldn’t get jmd_dashboard to work with symlink redirects so I had to use esq_adminsplash. :-(
If anybody gets it to work, let me know.
Offline