Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#253 2025-02-17 07:14:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

Thank you for your continued diligence at spotting my foul-ups, and your patient guidance with this project. I’ll certainly fix all those issues you mention over the coming days.


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

#254 2025-02-17 16:41:55

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 334
Website GitHub Twitter

Re: adi_matrix – Multi-article update tabs

Thanks, Philippe. I’m still coming to terms with how Hive does things in areas other than the Write page.

.

Bloke: can the inline style for textareas in a matrix table be omitted? The enforced height means triple the scrolling when dealing with scores of articles :(

Offline

#255 2025-02-17 16:52:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

I’ve just fixed the reset time label and checkboxes. So that’s one more thing knocked off the list.

giz wrote #339079:

can the inline style for textareas in a matrix table be omitted? The enforced height means triple the scrolling when dealing with scores of articles :(

I’d love to but I don’t know where it’s coming from! There’s no overflow-wrap: break-word; resize: none; text-align: start; height: 110px; etc in the code as far as I can see. I thought maybe it was coming from TinyMCE or glz_cf but I have neither of those installed. Baffling.

If anybody can spot where this styling is being injected, please point me in the right direction.


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

#256 2025-02-17 18:34:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

Is it just me or do the pageby and navigation page links not work? If you open them in a new tab they function fine and show the next page of articles in the matrix, but left-clicking on them just bounces you to the top of the current page and doesn’t alter the URL.

Strange… maybe be some JS interfering somewhere and cancelling the default action or something. But I can’t see where it might be doing that. I swear it used to work.

Last edited by Bloke (2025-02-17 18:37:04)


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

#257 2025-02-17 19:07:47

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

Bloke wrote #339081:

Is it just me or do the pageby and navigation page links not work?

D’oh, fixed. Any link inside a container with class txp-navigation is treated as an async JavaScript event by the core textpattern.js, which the plugin doesn’t respond to (wrong plugin type for a start, and even if that’s changed, it’s not wired up for async app_mode).

Last edited by Bloke (2025-02-17 19:08:10)


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

#258 2025-02-17 19:09:17

giz
Member
From: New Zealand
Registered: 2004-07-26
Posts: 334
Website GitHub Twitter

Re: adi_matrix – Multi-article update tabs

Bloke wrote #339080:

I’d love to but I don’t know where it’s coming from!

I’m using glz_cf; it must be the culprit!

Offline

#259 2025-02-17 19:10:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

giz wrote #339083:

I’m using glz_cf; it must be the culprit!

Maybe, but I’m not using it and there’s still an enforced bunch of inline styles applied to textareas.


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

#260 2025-02-17 19:31:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

phiw13 wrote #339076:

@ Bloke

Okay, I’ve done all these, except for the aria-labelled-by because I’ll have to read up on how to do it properly. And of course, I’m not sure what to do about the hive dark mode, so that’s pending further discussion, possibly with a mind to changeing core behaviour somehow. Does it need a 3rd switch option? Light, Dark, and Follow System? Maybe ditch the light bulb and add it as a proper pref three-way radio?

Last edited by Bloke (2025-02-17 19:46:06)


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

#261 2025-02-17 19:59:21

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,792
Website GitHub

Re: adi_matrix – Multi-article update tabs

Bloke wrote #339084:

Maybe, but I’m not using it and there’s still an enforced bunch of inline styles applied to textareas.

I think that’s being set by the autosize.js script in Hive. It seems to set the break-word and overflow: hidden, which is also in that injected css.

Bloke wrote #339085:

I’m not sure what to do about the hive dark mode … Does it need a 3rd switch option? Light, Dark, and Follow System? Maybe ditch the light bulb and add it as a proper pref three-way radio?

Could be a good idea in general but maybe then as a cycling button. On another site I did for someone, I did implement a dark-mode / light-mode switch. The site owner posted a question about the site on another (here unnamed) forum, and got a proper dressing down for the ‘brazenness’ of it. Not all forums are as good-natured as this one.


TXP Builders – finely-crafted code, design and txp

Offline

#262 2025-02-17 20:02:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

jakob wrote #339086:

I think that’s being set by the autosize.js script in Hive. It seems to set the break-word and overflow: hidden, which is also in that injected css.

Ahaaaa. Thank you. Is there any way to turn that behavior off?


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

#263 2025-02-17 20:11:00

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,792
Website GitHub

Re: adi_matrix – Multi-article update tabs

Bloke wrote #339087:

Ahaaaa. Thank you. Is there any way to turn that behavior off?

It turns out you can by setting:

define('no_autosize', true);

in config.php.

However … the textarea is still that high because it’s defined by rows="5" in the textarea attributes (which I guess is where the js is getting the height from). If you set it to rows="3" in adi_matrix, you’ll find you don’t need to switch off autosize.js.


TXP Builders – finely-crafted code, design and txp

Offline

#264 2025-02-17 21:08:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,607
Website GitHub

Re: adi_matrix – Multi-article update tabs

I might try and get rid of the rows and stuff altogether in the plugin. It should be up to themes to style, right?


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

Board footer

Powered by FluxBB