Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2018-09-18 13:30:59

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: [SOLVED] Txp serving template from different theme than the 1 selected

I’ve made some tests, please discuss. If we introduce a fine-tuned dev themes preview, we will be able to set, jointly or separately, sections theme, page and style:

As you see, one could test a new page/stylesheet without creating a new theme.

We would also be able to switch via the multiedit widget public assets to dev (or inversely) when the work is done.

Offline

#17 2018-09-18 14:00:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,502
Website GitHub

Re: [SOLVED] Txp serving template from different theme than the 1 selected

What a great idea! I love the struck-through content as it makes it clear what’s visible to the masses and what’s being overridden by your logged-in status. And the ability to test a second stylesheet or page without creating a new theme is genius. Love it.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#18 2018-09-18 21:39:20

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: [SOLVED] Txp serving template from different theme than the 1 selected

Thanks Stef, great if you like it. I will then run more thorough tests and commit it shortly.

Offline

#19 2018-09-21 07:04:31

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: [SOLVED] Txp serving template from different theme than the 1 selected

FWIW

etc wrote #314108:

I’ve made some tests, please discuss. […]

FWIW I like it too, but I was not sure about the way it is displayed. I’m now thinking that the use of a line through is disturbing for me; it seems to tell about something removed or broken, not disabled. I would suggest the use of something more consistent with the way the disabled items (I’m thinking about inputs) are styling by default, just making the text ligthter. What do you think?

Edit: here is an example… sorry for the weird names !

Last edited by NicolasGraph (2018-09-21 07:24:06)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#20 2018-09-21 07:25:27

etc
Developer
Registered: 2010-11-11
Posts: 5,689
Website GitHub

Re: [SOLVED] Txp serving template from different theme than the 1 selected

Thanks Nicolas, I get your point. The “overridden” items are wrapped in <del></del> tags but not disabled. I think that’s semantically correct and would leave the styling with admin theme authors.

Offline

#21 2018-09-21 07:45:53

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: [SOLVED] Txp serving template from different theme than the 1 selected

etc wrote #314118:

Thanks Nicolas, I get your point. The “overridden” items are wrapped in <del></del> tags but not disabled. I think that’s semantically correct and would leave the styling with admin theme authors.

Ok Oleg, thanks. Indeed, that makes sense.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

Board footer

Powered by FluxBB