Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Modifying txp-save-zone / pane-header?
Yes please! Those hooks seem really useful. Thank you.
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
Re: Modifying txp-save-zone / pane-header?
Bloke wrote #339229:
Yes please! Those hooks seem really useful. Thank you.
Brilliant. PR submitted.
TXP Builders – finely-crafted code, design and txp
Offline
Re: Modifying txp-save-zone / pane-header?
And merged. Can’t believe we never did that before! Thank you.
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
Re: Modifying txp-save-zone / pane-header?
Yes, thanks for adding that. It makes that much easier for themes to adapt the save-zone block to needs.
Back to the other part of the discussion: what is the consensus for the organisation of those 3 (or 4) links/buttons: “Preview”, “View” and “Duplicate” (and “New”) ? And which icons are considered most appropriate? The icons for New and Duplicate are OK I think. The other two?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Modifying txp-save-zone / pane-header?
![]()
![]()
Options for Preview? Or is that too much like search?
Maybe stick with the eye concept for full view?
Last edited by Bloke (2025-03-09 11:30:52)
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
Re: Modifying txp-save-zone / pane-header?
I’m glad these preview features/interface are being discussed by UX-competent folks. Just few remarks for background.
towndock wrote #339218:
Having “View” come from the database, and “Preview” (in effect pre… view) come from just the browser, actually makes sense. It makes sense for the whole page to be previewed. I like it.
We all have different workflows & sites, but to me all the additional Previews (body, excerpt, custom fields) lead to confusion, with little benefit in return.
These ‘partial’ preview links were intended as security features for site admins inspecting the input of low-privileged authors. Even cf can contain some harmful code, but the ‘global’ article preview is not always able to detect it, because
- it uses the currently selected (or default) article form, that does not always contain cfs;
- script and other evil detection is not run in the global page preview, because of multiple ‘false’ warnings (meta, styles and so on).
Offline
Re: Modifying txp-save-zone / pane-header?
Bravo jakob!
I’m looking forward to how this develops for the UI as a whole; maybe everyone can have cake (and eat it too).
Offline
Re: Modifying txp-save-zone / pane-header?
Bloke wrote #339234:
Options for Preview? Or is that too much like search?
Maybe stick with the eye concept for full view?
I was thinking the eye icon fits better for Preview (by analogy with the QuickLook icon on macOS and iOS). For the full View icon, I am not sure. A quick search in the usual icon repos yields many very similar icons as what you posted. Is that something originating in Windows OS?
For the full View icon, perhaps a File icon with a diagonal upwards arrow?
Other takes and suggestions?
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Modifying txp-save-zone / pane-header?
phiw13 wrote #339241:
I was thinking the eye icon fits better for Preview (by analogy with the QuickLook icon on macOS and iOS). For the full View icon, I am not sure. For the full View icon, perhaps a File icon with a diagonal upwards arrow?
Other takes and suggestions?
I think that distinct icons make things clearer, too. I suggested something similar (but with just a diagonal upwards arrow) in an earlier post.
TXP Builders – finely-crafted code, design and txp
Offline
Re: Modifying txp-save-zone / pane-header?
No idea what icon set they came from. I just searched the web.
As far as iconography goes, presumably it’s preferable to use ones from our curated set that Phil prepared. Do any of the icons in there have potential for either/both functions?
Last edited by Bloke (2025-03-10 10:28:45)
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
Re: Modifying txp-save-zone / pane-header?
jakob wrote #339242:
I think that distinct icons make things clearer, too. I suggested something similar (but with just a diagonal upwards arrow) in an earlier post.
That is a possibility too. A little more abstract maybe. It has the advantage of existing in the current iconset. What I have in mind could (easily) be made as a combination of two icons from the same set.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Modifying txp-save-zone / pane-header?
phiw13 wrote #339245:
What I have in mind could (easily) be made as a combination of two icons from the same set.
Wait. We can do that?! I presumed if we used two in the same span, the icons would go side by side, not stack. Guess it would need a new rule to make them both absolutely positioned or something?
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
Re: Modifying txp-save-zone / pane-header?
Bloke wrote #339246:
Wait. We can do that?! I presumed if we used two in the same span, the icons would go side by side, not stack. Guess it would need a new rule to make them both absolutely positioned or something?
Might be possible – multiple background images on one element1. Probably not really pretty. But I was thinking opening the graphics editor and create a new image (SVG) based on those two images, to keep the same styling as the other icons. I have the un-minified SVG files somewhere stored locally.
1 background-image: url("cat-front.png"), url("mouse.png");
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: Modifying txp-save-zone / pane-header?
Bloke wrote #339234:
Options for Preview? Or is that too much like search?
Maybe stick with the eye concept for full view?
I like the magnifying glass idea for ‘partial’ body/excerpt/cf previews. It makes me think of ‘inspect’, which is one of their functions.
Offline
Re: Modifying txp-save-zone / pane-header?
etc wrote #339248:
I like the magnifying glass idea for ‘partial’ body/excerpt/cf previews. It makes me think of ‘inspect’, which is one of their functions.
Oh, are we going for icons there too instead of the word ‘Preview’? Perhaps if we use icons for the individual fields, we can stick with a word for the main page preview?
Reducing the number of words on the page could be helpful, and if there’s only one “Preview” word on the page, it makes it easier to document and/or direct people to the correct one.
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