Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-10-04 17:29:09

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,513
Bitbucket GitHub

RFC: production_status / if_production_status tag

Could we consider weaponising the site production status to do stuff if a certain state is set? Could be a one-shot or container approach.

Diagnostics, web dev tools, that sort of thing.

For example:

<txp:if_production_status something="testing">
[…]
</txp:if_production_status>

…or, more succinctly:

<txp:production_status />

Offline

#2 2025-10-04 18:00:17

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

Re: RFC: production_status / if_production_status tag

Does not this suffice? The prefs name is.. ahem.. production_status (‘live’, ‘testing’ or ‘debug’).

Offline

#3 2025-10-04 18:15:15

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,513
Bitbucket GitHub

Re: RFC: production_status / if_production_status tag

etc wrote #340840:

Does not this suffice? The prefs name is.. ahem.. production_status (‘live’, ‘testing’ or ‘debug’).

Well, this is embarrassing…I’d tried three times across two sites, couldn’t get it to work, and now I’ve manually typed instead of copy & paste, it works.

Thank you, etc. Ahem.

Offline

Board footer

Powered by FluxBB