Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2009-03-25 15:34:48

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Admin Side Theming! (r3149)

I think, a plugin author should strive to cater for the classic theme. Alternative themes will probably rely on ids and classes introduced there, so a plugin should fit nicely into any theme without any special adoptions.

Offline

#62 2009-03-25 15:37:53

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Admin Side Theming! (r3149)

@wet – yup that’s what I was thinking, but I remember when I wrote admin side plugins I would have to keep searching the source code to see what ids and classes to use. I was just suggesting defining the classes and ids used in the classic theme so devs understands when to apply them.

Offline

#63 2009-03-25 15:51:39

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Admin Side Theming! (r3149)

Ah, yes. So if you think it’s useful, do not hesitate to head over to TextBook. Class names and ids are rather stable, so the effort would make sense.

We’d also need a “How To Write Your Own Admin Theme” guide, from simple first steps like I sketched here, to a full-blown customisation.

Offline

#64 2009-03-25 16:21:15

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Admin Side Theming! (r3149)

Good idea – started the page for the Admin theme here. I suggest that this page goes under the Admin section instead of Extending Texpattern.

Offline

#65 2009-03-26 03:37:53

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Admin Side Theming! (r3149)

Finally got to play around and do some damage.

I successfully ported a version of phwiw’s admin facelift v2 theme. You can grab it here

Enjoy!

Last edited by mrdale (2009-03-26 06:25:26)

Offline

#66 2009-03-26 10:05:05

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Admin Side Theming! (r3149)

mrdale wrote:

You can grab it here

Something’s missing at this deep brown page…

Offline

#67 2009-03-26 15:20:31

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Admin Side Theming! (r3149)

OK, silly me (rvm_maintennance). Should work now…

Offline

#68 2009-03-26 15:38:55

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Admin Side Theming! (r3149)

Theming deeper areas..

Is it possible to address other areas like the way plugins are listed, through the theme file. for example, I don’t really like the way that the plugins page’s new “edit” and “help” buttons make the trs use up more vertical space. I’d like to add a class each to those so I can style ‘em differently.

Would I just replace the whole function plugin_list? from the txp_plugin.php file with one in my theme.php?

Last edited by mrdale (2009-03-26 15:39:29)

Offline

#69 2009-03-26 16:10:48

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

Re: Admin Side Theming! (r3149)

Updated to svn (r3164), activated Remora theme – i’m impressed! Thanks! It’s very handy to have direct access to covered options.

Last edited by the_ghost (2009-03-26 16:11:15)


Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?

Offline

#70 2009-03-26 16:53:32

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Admin Side Theming! (r3149)

mrdale wrote:

Theming deeper areas..

Is it possible to address other areas like the way plugins are listed

No. This is not in the scope of the current theming procedure. But you might suggest elements which would benefit from additional classes and the like, and those could go into core.

Offline

#71 2009-03-26 17:21:49

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Admin Side Theming! (r3149)

Why don’t you just hand your list of affected elements over?

Offline

#72 2009-03-26 17:27:26

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Admin Side Theming! (r3149)

Sure, I’ll go through a standard txp install and make a wish list

stand by…

Update isn’t a bit of a waste of time for me to go through and specifically request items to be classed and idd? I mean i’m happy to do it, but if you really want to encourage themeing of the whole UI, can’t you just go through and class or id everything that people would want to target and style.

For example, on the articles page (or in fact any list based page like images,plugins,files,links, etc…), you could just class every th and td with a semantic class, (one or two already do) then a theme could switch off/on style with widths, do whatever they’d like.

Another example, on the write page, you could give ids to things like the P-tags that surround the inputs and you could easily switch off, alter those items in style individually.

makin, sense?

Last edited by mrdale (2009-03-26 17:48:09)

Offline

Board footer

Powered by FluxBB