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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,416
Website GitHub 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

#73 2009-03-26 17:42:35

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Admin Side Theming! (r3149)

wet

I’ve installed both Mr. Dale’s version of “Phwiw’s Admin Face Lift Take 2” and Stuart’s “A Bit of Blue” along side your Remora to try out on one of my experimental installs. So far, it’s been easy to change back and forth.

Nice work! Thank you for what you do.

Last edited by maverick (2009-03-26 18:06:26)

Offline

#74 2009-03-27 02:30:11

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,631
Website

Re: Admin Side Theming! (r3149)

I’ve uploaded a first pre-alpha version of my phiw theme: download link. And screenshot. Experimental.

Feedback appreciated (prolly by mail or so, don’t clutter this thread) ;-). I’m curious how the header navigation feels. And I still need to figure out how to make that navigation more friendly to keyboard users.

Note – The above screenshot was taken with an hour-old Minefield nightly build. Some small details won’t show up in any other browser. Thing should otherwise work well in Safari3, Fx 3, Opera9.6, IE 8 – and maybe IE 7.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#75 2009-03-27 02:37:52

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,631
Website

Re: Admin Side Theming! (r3149)

wet wrote:

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.

All those tables with the same ID :-). Have a look at the crazy selectors in the theme linked in my previous post. For ex. the login panel … Nothing a good stylesheet author can’t handle – although dealing with IE 8 and older is an issue.
I’ve made some changes to my local copy of TXP, I’ll try to prepare a patch – or better, multiple patches, that will be more clear.

I know those ID’s probably can’t be changed for plugin compatibility reasons and the like. I’ll have a look at a way to handle this.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

Board footer

Powered by FluxBB