Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-11-06 21:10:59

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#14 2005-11-08 01:54:27

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

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)


Offline

#15 2005-11-08 07:34:32

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#17 2005-11-08 08:09:59

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#18 2005-11-08 10:48:03

edeverett
Archived Plugin Author
From: London
Registered: 2005-03-17
Posts: 42
Website

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

#19 2005-11-08 11:40:00

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#20 2005-11-08 11:55:21

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Creating an admin side welcome page

Sencer,
Thanks,
Now its working fine, and I can play around with it. :)

Matthew


Offline

#21 2005-11-08 12:05:15

edeverett
Archived Plugin Author
From: London
Registered: 2005-03-17
Posts: 42
Website

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

#23 2005-11-08 14:17:43

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Creating an admin side welcome page

Yes, you should always use the latest release of the 4.0.x branch.

Offline

#24 2005-11-08 16:32:20

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

Board footer

Powered by FluxBB