Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2025-08-15 17:02:06

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,219
Website GitHub

Re: RFC: Textpattern 5 ideas & feature requests

Bloke wrote #340194:

I don’t see this as a major issue, because I suspect 80 (90?)+ percent of people will use it for just marking up text. It’s only us hardcore folk that tend to go above and beyond the standard usage, right?

I absolutely see that as an issue. If you want to embed an image with a srcset, or perhaps a small set of images, a shortcode is the only way to go (apart from writing it all in html – or is there another option). As soon as a client declares they want Markdown, and then later decides they could imagine having a slideshow within the article, what do you do if shortcodes don’t work…

etc wrote #340192:

From a quick GH test, Markdown encodes txp tags:

phiw13 wrote #340193:

FWIW, Textpattern 4.9, Markdown plugin active. Markdown extra selected as format, input:

Hello, <txp:author />...

So GitHub can’t but Textpattern can. That would certainly be encouraging if one can continue using shortcodes and regular tags with Markdown in Textpattern.


TXP Builders – finely-crafted code, design and txp

Offline

#92 2025-08-15 17:20:50

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

Re: RFC: Textpattern 5 ideas & feature requests

jakob wrote #340195:

a client declares they want Markdown, and then later decides they could imagine having a slideshow within the article, what do you do if shortcodes don’t work…

Put the shortcode on its own line? I believe Parsedown will handle that, it’s just mixing them it can’t do as there’s no way to ‘escape’ complex codes.

As phiw13 demonstrated, simple tags (without attributes?) work fine inline. I’ve not tested this rigorously (uhh, at all) so the situation may be better than we hoped. Perhaps Markdown can handle inline markup now.


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

#93 2025-08-16 01:59:51

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

Re: RFC: Textpattern 5 ideas & feature requests

jakob wrote #340195:

I absolutely see that as an issue. If you want to embed an image with a srcset, or perhaps a small set of images, a shortcode is the only way to go (apart from writing it all in html – or is there another option). As soon as a client declares they want Markdown, and then later decides they could imagine having a slideshow within the article, what do you do if shortcodes don’t work…

So GitHub can’t but Textpattern can. That would certainly be encouraging if one can continue using shortcodes and regular tags with Markdown in Textpattern.

It is not surprising GH can’t handle those <txp:tag />. It doesn’t known anything about it, and treat it as “unknown tag” or such. Thankfully it sanitise it and does it in a friendly way, the tag is still visible. I seem to remember Vignette completely removing them, which is still better than leaving them in probably invisible and then open for potential abuse.

And yes, as I mentioned upthread, your shortcode tags would continue to work fine.


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

Offline

#94 2025-08-16 02:32:54

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

Re: RFC: Textpattern 5 ideas & feature requests

Bloke wrote #340197:

As phiw13 demonstrated, simple tags (without attributes?) work fine inline. I’ve not tested this rigorously (uhh, at all) so the situation may be better than we hoped. Perhaps Markdown can handle inline markup now.

As far as I can tell, I can do most everything the same in a Markdown managed file as I do with a Textile one. Or at least most what we need here (shortcodes being the most important one). And of course some more, really complex Textpattern tags might have a problem. But that happens with Textile as well.

Here a very basic example: emps.l-c-n.com/tests/markdown-test1 – a shortcode to embed the image, the <txp:author /> used as sample before (of course you can’t see from it that the underlying code is Markdown :-()

PS – I don’t remember if there is an .notextile or == equivalent in Markdown.


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

Offline

#95 2025-08-16 08:29:39

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

Re: RFC: Textpattern 5 ideas & feature requests

That’s good to know. So having both languages available side by side is a win.


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

#96 2025-08-19 10:23:14

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,559
Website GitHub Twitter

Re: RFC: Textpattern 5 ideas & feature requests

Hi everyone,

My 2 roblox coins,

If having markdown as an additional option can ease some new users why not.

I think it could be good to have a startup approach for this, quickly build the feature the simplest way possible to not cost a lot of dev time and test the response from user, if the response is positive devs can take more time to refine it.

Cheers.

Offline

#97 2025-08-28 13:58:42

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

Re: RFC: Textpattern 5 ideas & feature requests

Some considerations for admin-side language strings, specifically around pophelp and their (its?) parity with textpacks.

  • Permit pophelps to be installed / updated in the way textpacks are currently.
  • Permit pophelps & textpacks to be deleted (see #1768 for existing issue)

Offline

#98 2025-08-28 14:30:33

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

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #340320:

Permit pophelps to be installed / updated in the way textpacks are currently.

Good idea. We should be able to do this. They’re XML and we have an importer so it shouldn’t be a stretch with some UI sprinkling.

Permit pophelps & textpacks to be deleted

That’s more problematic. Hiding unused ones via a toggle is simpler and less likely to confuse, imo. We can figure the best way, though.


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

#99 2025-08-29 09:05:42

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,219
Website GitHub

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #340320:

Some considerations for admin-side language strings, specifically around pophelp and their (its?) parity with textpacks.

  • Permit pophelps to be installed / updated in the way textpacks are currently.
  • Permit pophelps & textpacks to be deleted (see #1768 for existing issue)

That’d be nice. I faked it in a recent update to etc_search by retrofitting a textpack string to the button.


TXP Builders – finely-crafted code, design and txp

Offline

#100 2025-08-29 09:36:03

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

Re: RFC: Textpattern 5 ideas & feature requests

Bloke wrote #340321:

[Pophelps are] XML and we have an importer so it shouldn’t be a stretch with some UI sprinkling.

It’d be great if we could handle this on the Languages panel.

All we really need is a way to indicate if a language has an update available for both (either?) pophelp and lang strings in the box.

Could we cover the install / update / reload using the existing button? So if either file is newer, it updates or installs them both?

Can anyone think of a situation where someone might want to install or remove only one and not the other?

The percentage still only applies to Textpack completion, as we’ve no way to gauge which elements require pophelp.

Edit: not sure about the manual additional strings box at the bottom. Could we accept either ini-style strings or XML there? Should de easy to detect which and handle accordingly.

This almost feels doable now :)

Last edited by Bloke (2025-08-29 09:39:12)


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

#101 2025-08-29 13:30:26

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

Re: RFC: Textpattern 5 ideas & feature requests

Bloke wrote #340321:

That’s more problematic. Hiding unused ones via a toggle is simpler and less likely to confuse, imo. We can figure the best way, though.

Quick back of napkin maths shows the language packs + pophelps are currently ~3.5MB from a total of ~8MB in the expanded filesystem with /textpattern/setup/ present – so about 40% of the overall payload. Language packs is one area that likely keep growing, and it’s not something we can optimise easily.

Aside: are there any inherent risks associated with not uploading all the unused packs?

Offline

#102 2025-08-29 13:53:26

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

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #340360:

are there any inherent risks associated with not uploading all the unused packs?

None whatsoever. The missing languages just won’t show up in the Languages panel (which is why we can’t “remove” them from the UI list without deleting the physical files… which means they’re then not available in future without downloading a pack and dropping it in the lang directory.)

Last edited by Bloke (2025-08-29 13:54:32)


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

#103 2025-09-03 06:07:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,219
Website GitHub

Re: RFC: Textpattern 5 ideas & feature requests

Not necessarily the language panel method, but just cross-posting to this thread where Stef already outlined a method for plugins.


TXP Builders – finely-crafted code, design and txp

Offline

#104 2025-10-10 14:24:08

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

Re: RFC: Textpattern 5 ideas & feature requests

Two things…

First, can we take a moment to acknowledge this thread has passed 20,000 views?

Second, could we consider having a pref to choose whether the Save button on non-article content (i.e. files, images, links) bounces you back to the list of said content or keeps you on the content item itself?

Articles, forms, pages…you tap or click Save…you stay on the article / form / page edit page. Great. As expected.

The other content…tapping or clicking Save brings you back to the list of that content…which then takes a tap / click & maybe some scrolling to get back to edit that content.

Thank you for your considerations, Textpattern Council.

Offline

#105 2025-10-10 14:49:34

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

Re: RFC: Textpattern 5 ideas & feature requests

gaekwad wrote #340905:

could we consider having a pref to choose whether the Save button on non-article content (i.e. files, images, links) bounces you back to the list of said content or keeps you on the content item itself?

This is something I’ve pondered. Some workflows require remaining on the ‘edit’ step, others I’m quite glad I don’t have to click Go back. A pref seems too bludgeony (though a per-user pref might work).

One thing I’ve considered is a split button. Seems as though we could streamline the actions here – on the Write panel too – and have:

  • Save – default. Stays on the page
    • Save and go back – does what it says on the tin
    • Go back – abandons changes and returns to the list view

Not sure. Would need some ratification from those more versed in UX than me. ‘Go back’ seems a bit presumptuous that you have come from the list view, so there might be better labelling to be had.

Last edited by Bloke (2025-10-10 14:52:07)


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

Board footer

Powered by FluxBB