Textpattern CMS support forum

You are not logged in. Register | Login | Help

#141 2018-09-09 09:35:15

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,203
Website

Re: Testers needed: flat development (4.7+ only)

etc wrote #313933:

Hi Patrick, no offense intended, that just was the only plugin in Yiannis list that alters the page output, hence an easy suspect, sorry. Also, from what I’ve understood, you need to put it at the very beginning, so an eventual linebreak after it invalidates XML.

This makes me think that we should trim the final page output before serving it. I don’t see why anyone would need to start his pages with a space or a linebreak. Edit: done.

Sure ;)

Thanks lot for the commit: as always you make great things for TXP!


Patrick.
G+
Github | CodePen

Offline

#142 2018-10-08 15:45:39

etc
Developer
Registered: 2010-11-11
Posts: 2,833
Website

Re: Testers needed: flat development (4.7+ only)

Custom (flat) assets management is slowly taking shape in 4.7.2. One can edit and use site components (js, css etc) as forms, defining their mimetype via a pref (currently in Advanced options section). This custom_form_types pref (in ini format) allows also for custom form types definition. Example:

[js]
mimetype="application/javascript"
[shortcode]
*="Short code"
es="Etiqueta corta"

will add js and shortcode to available form types.

As a consequence, easter eggs plugin is not needed anymore for these tasks.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#143 2018-10-08 17:56:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,800
Website

Re: Testers needed: flat development (4.7+ only)

etc wrote #314476:

… As a consequence, easter eggs plugin is not needed anymore for these tasks.

👍 Wonderful news!!! 👏


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#144 2018-10-09 15:14:42

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

Re: Testers needed: flat development (4.7+ only)

etc wrote #314476:
[shortcode]
*="Short code"
es="Etiqueta corta"

I know the syntax has changed today but just on an i18n note, are we forcing people to specify language translations in this pref or can they be picked up via `gTxt()` somehow, perhaps via a well-known prefix? Just thinking it’d be easier for plugins/themes to add lang strings than cleanly merge their custom type definitions into the pref (unless there’s a companion API call to do it for them without duplicating existing mime types that may have been defined by hand?)


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

#145 2018-10-09 22:06:39

etc
Developer
Registered: 2010-11-11
Posts: 2,833
Website

Re: Testers needed: flat development (4.7+ only)

Bloke wrote #314499:

Just thinking it’d be easier for plugins/themes to add lang strings than cleanly merge their custom type definitions into the pref

I totally agree there should be a better way to manage strings, ideas welcome. But why a plugin/theme would add a custom type, which are intended only for easier classification? And custom mimetypes normally do not require translation…


etc_[ query | search | pagination | date | tree | cache ]

Offline

Board footer

Powered by FluxBB