Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2025-01-18 08:34:26

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

Re: Themes

phiw13 wrote #338857:

client(s) usually get some more rights, how else would they manage the website (add user, … … …)?

True. If you can think of a way the interface could sanely help here, by all means raise ideas.

We need to maintain “you are currently editing theme xyz” in the pages/forms/styles panels. And maintain the dev/live lane views for everyone who is/isn’t logged in, respectively. Toggling per section as I outlined above might work, but if you have a lot of sections it’s far quicker to hop to the prefs and temporarily turn off the developer preview.

Ideas welcome.


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

Offline

#14 2025-01-18 09:05:27

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

Re: Themes

phiw13 wrote #338857:

It is not a big problem by itself, but sometimes some (serious) handholding is needed…

It shouldn’t be difficult to write a plugin that enables admins to switch other users preferences. It’s just a bit intrusive to make part of core.

Offline

#15 Yesterday 06:14:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,330
Website GitHub Mastodon Twitter

Re: Themes

etc wrote #338839:

There is a per user Enable development theme preview? pref, so you can create two admin users and open two parallel sessions (in isolated browsers or tabs).

I’m trying to find the preference again, and I cannot find it. I’m currently using Textpattern version: 4.9.0-dev (be3772418aba616fdd3df5b550bdd4db)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#16 Yesterday 06:44:54

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

Re: Themes

Yiannis,

Preferences > admin > at the bottom.


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

Offline

#17 Yesterday 07:51:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,330
Website GitHub Mastodon Twitter

Re: Themes

phiw13 wrote #341124:

Yiannis,

Preferences > admin > at the bottom.

Thanks!

I’m blind as a bat.

The next question is how can I assign which theme I’m previewing? I have 3 themes, the live one, another one which I’m developing long term, and a third one which I’ll be doing short term work. At the moment, the long term dev theme is previewed but I would like to preview the short term one.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#18 Yesterday 08:25:52

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

Re: Themes

Assign the short-term one to any section and then view that section. There can only be two themes assigned to a section – one live lane and one dev lane.


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

Offline

#19 Yesterday 09:10:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,330
Website GitHub Mastodon Twitter

Re: Themes

Here’s a step-by step with what I’m attempting.

  1. I go to themes.
  2. I click on the “assign sections” of the short term theme.
  3. I select a section using the checkbox (but also tried it by clicking the section’s title).
  4. I assign a section and a page from my dev pages, but instead of the page being assigned only for that them, it is also applied globally. ie for the particular section in my other dev theme and for my live site.

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#20 Yesterday 10:56:16

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

Re: Themes

If you click the section title and go into edit mode, that always acts on the live lane, because there’s no split view option on that edit step.

If you want to assign dev assets you must do it from the multi-edit tool on the Sections panel:

  1. select one or more sections to apply your changes to.
  2. choose multi-edit Change theme/page/style.
  3. ensure the Development chceckbox is ticked and the Live is unchecked.
  4. choose your page template and/or stylesheet from the drop-down. If it’s set as ‘*’ then it leaves that asset alone.
  5. click Go and confirm.

That will assign the chosen assets to the selected sections. As long as your Allow developer preview pref is on, you’ll see the dev assets when logged in.


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

Offline

#21 Yesterday 16:09:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,330
Website GitHub Mastodon Twitter

Re: Themes

Thanks so much Stef,
The process is slightly non-intuitive but it works once you go through it.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#22 Today 06:38:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,330
Website GitHub Mastodon Twitter

Re: Themes

I have a last question on this. How do I delete the dev theme after moving (copy/pasting) it to the main branch of the site?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#23 Today 07:40:28

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

Re: Themes

Eh? Copy/paste? Don’t you use the multi-edit Developer preview option to push changes from dev->live in one step?

Once you’re done with any theme and there are no sections assigned to its assets you can delete it from the Themes panel via multi-edit.


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

Offline

Board footer

Powered by FluxBB