Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Creating an admin side welcome page
Here is something very simple (mostly as a proof of concept) to get plugin authors started.
http://www.sencer.de/code/txp/asy_dashboard.txt (plugin)
http://www.sencer.de/code/txp/asy_dashboard.phps (source)
What it does:
- Allows you to make a fully custom dashboard by bringing the front-ends parse() to the backend, meaning you can use txp-tags and html for customizing.
- Looks for a form called asy_dashboard (if it exists), otherwise defaults to plain article and comment list (see below)
- Introduces two tags (for articles and comments) which shows the most recent elements with links to the respective editing pages.
See help of the plugin for how to get started.
Offline
Re: Creating an admin side welcome page
Sencer,
To help me understand: Do you suggest creating a section for this? How does it get applied to the admin-side of things? Is this a dashboard for a site, that takes people to the admin pages? Thanks for clarifying.
OR is this really JUST a starter for plugin developers?, cause although I wish I were, I am not :) still much to learn.
Matthew
Last edited by ma_smith (2005-11-08 02:07:27)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Creating an admin side welcome page
1. You install the plugin.
2. You log in (or go the admin-url) and you see a plain (and somewhat ugly) dashboard.
3. If you want to pretty it up, you can create a form called asy_dashboard and customize it any way you want. There are two new txp-tags included (see help).
If you can live with the functionality it offers, then this will be enough for you.
I seeded this, so that a plugin-developer can make a more comprehensive plugin, that is more appealing out of the box.
Offline
#16 2005-11-08 07:41:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Creating an admin side welcome page
Hey, nice one, Sencer. I may just play around with this later.
Offline
Re: Creating an admin side welcome page
I hate to spoil the fun but I’m not seeing anything. When I login I just end up at the article editing screen as normal.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Creating an admin side welcome page
Me neither, I don’t see anything, I’m just taken straight to the standard write tab.
Ed.
Offline
Re: Creating an admin side welcome page
<strike>D’oh. It’s true, you don’t get to the dashboard, after login, because the login is a form-submit. I’ll get this fixed.</strike>
Ok, it’s repaired now (also fixed another bug). Make sure you force reload (ctrl-f5) when you download from the link above.
Offline
Re: Creating an admin side welcome page
Sencer,
Thanks,
Now its working fine, and I can play around with it. :)
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Creating an admin side welcome page
Thanks!
Offline
#22 2005-11-08 13:49:21
- oldi
- Member
- Registered: 2005-10-14
- Posts: 87
Re: Creating an admin side welcome page
I get this message after i login
Fatal error: Call to undefined function: escape_title() in /web/sites/205/morava/www.morava.f2s.com/youth/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 55
i am using 4.0.1 does it work only with 4.0.2
Offline
Re: Creating an admin side welcome page
Yes, you should always use the latest release of the 4.0.x branch.
Offline
Re: Creating an admin side welcome page
Excellent thanks Sencer. That’s fixed it. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline