Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [SOLVED] Txp serving template from different theme than the 1 selected
Bloke wrote #314079:
However, adding a second theme per section requires a Page and Stylesheet too
I don’t see why, this new field would just play the role of skin_editing
pref on the public side.
Let’s give this some thought and see if we can figure out the best path.
We do right now :-)
Offline
Re: [SOLVED] Txp serving template from different theme than the 1 selected
etc wrote #314082:
I don’t see why, this new field would just play the role of
skin_editing
pref on the public side.
I guess Stef was thinking about some issue that could appear if the dev theme has no page named as the live selected one.
Offline
Re: [SOLVED] Txp serving template from different theme than the 1 selected
NicolasGraph wrote #314083:
I guess Stef was thinking about some issue that could appear if the dev theme has no page named as the live selected one.
Ah right, they are packaged together, thanks. Ok then, if we add also dev page/style it will be even more flexible: you could use the live theme and change only, say, the style in dev mode. Requires some work, but all ingredients are already there, imo.
Offline
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
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.
Txp Builders – finely-crafted code, design and Txp
Online
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
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)
Offline
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
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.
Offline