Textpattern CMS support forum

You are not logged in. Register | Login | Help

#231 2018-01-30 13:16:44

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,194

Re: stm_article_order: Arbitrary sort order for your articles

Bloke wrote #308969:

[…] a list of languages like Uli specified. […]

I’m too uninspired ;) to even think that and try. That’s the v1.2.1 of ied_pc.

Last edited by uli (2018-01-30 13:17:33)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#232 2018-01-30 13:23:53

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,194

Re: stm_article_order: Arbitrary sort order for your articles

Stef, if I change the language indicator line of that textpack to …

#@language en, en-us, en-gb

… would that textpack work?

Seems I’ve misinterpreted this here, sorry:

Bloke wrote #308969:

The English textpack will need en adding to it, in addition to en-gb and en-us.

Last edited by uli (2018-01-30 13:33:38)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#233 2018-01-30 13:26:22

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 740
Website

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote #308972:

Stef, if I change the language indicator line of that textpack to # language en, en-us, en-gb@, would that textpack work? (Had to add spaces in order to overrule forum Textile.)

Tada! … :))

!http://take.ms/6glW0!

Last edited by RedFox (2018-01-30 13:30:46)

Offline

#234 2018-01-30 13:27:40

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,194

Re: stm_article_order: Arbitrary sort order for your articles

Ah, great! Thanks, Joop! Looked like you copied my line over. :(

Last edited by uli (2018-01-30 13:29:44)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#235 2018-01-30 13:31:55

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 740
Website

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote #308975:

Ah, great! Thanks, Joop! Looked like you copied my line over. :(

!!??

Offline

#236 2018-01-30 13:35:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: stm_article_order: Arbitrary sort order for your articles

RedFox wrote #308970:

#@language en-en

It should actually be en not en-en. The only reason it worked, btw, was because en-en doesn’t exist so it defaulted to the built-in default, en :-)

uli wrote #308972:

if I change the language indicator line of that textpack to ‘#@language en, en-us, en-gb’ would that textpack work?

I don’t think so. From a cursory check of the code – I may have missed something – languages can only be specified singly (see my edited post above).

We should probably change core to use the first valid one it finds so you could specify, for example:

#@language pt, pt-br

If you have Portuguese installed, you’ll get the pack. If you have pt-br installed, it’ll skip pt and install for pt-br instead. If you have both, well, dunno. It should probably install both but I’m not sure if the pack format is geared up for that. I could try and make it handle it correctly as I think that’d be way better.


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

#237 2018-01-30 13:40:00

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,194

Re: stm_article_order: Arbitrary sort order for your articles

Thanks for your explanations, Stef. I’ll edit my download post accordingly.

Added: And please think of adapting ied_plugin_composer’s textpack implementation to the solution you’ll choose.

Last edited by uli (2018-01-30 13:46:12)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#238 2018-01-30 14:06:17

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,629
Website

Re: stm_article_order: Arbitrary sort order for your articles

uli wrote #308978:

please think of adapting ied_plugin_composer’s textpack implementation to the solution you’ll choose.

Plugin Composer’s language handling needs an overhaul in 4.7.0 anyway so I’ll do this as part of the 4.7.0-aware version.


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

#239 2018-01-30 19:10:56

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,194

Re: stm_article_order: Arbitrary sort order for your articles

I’ve missed the following one:

RedFox wrote #308976:

!!??

I thought we’d have a valid, working solution with the code line in this post.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB