Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#193 2018-11-13 21:42:26
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_matrix – Multi-article update tabs
Thanks everyone for chipping in on this one. Must confess I’m at a bit of a loss. Can’t reproduce the problem myself.
The ‘criteria_status’ column is/should be type INT, length 2, default 4. If you leave Status blank in the matrix settings, the value set in the table is/should be 0 – i.e. any article status.
Might be worth having a look at the adi_matrix table to check that the ‘criteria_status’ column is set up correctly.
Offline
#194 2022-08-03 09:52:16
- peterj
- Member
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 102
Re: adi_matrix – Multi-article update tabs
I found some warnings on a site running TXP 4.8.8. and PHP EA 8.0. with adi_matrix 2.1beta5, in debug mode.
Warnings are like: A problem occurred while loading the plugin: adi_matrix (2.1beta5) -> 8192: Required parameter $offset follows optional parameter $where on line 848
Alterations to adi_matrix_get_articles() function’s parameter order fixed it:
Around line 846:
function adi_matrix_get_articles($offset,$matrix_index,$limit,$where='1',$sortq='') {
Around lines 2171 and 2207 update the function calls to:
adi_matrix_get_articles($offset,$matrix_index,$pageby,$where,$sortq);
Offline
#195 2022-08-08 22:43:58
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_matrix – Multi-article update tabs
peterj wrote #333750:
I found some warnings on a site running TXP 4.8.8. and PHP EA 8.0. with adi_matrix 2.1beta5, in debug mode.
Apologies for the delayed reply. Thanks for the report & the fix. Noted!
Offline
#196 2022-12-05 16:20:42
- ironmangary
- Member
- From: United States
- Registered: 2022-10-13
- Posts: 36
Re: adi_matrix – Multi-article update tabs
I just installed this plugin. I went through, chose the fields, clicked “Update Matrix Settings,” and got this generic error:
Matrix settings update failedIs there a more verbose error somewhere? I didn’t have any errors under Admin -> Diagnostics.
Thanks!
Last edited by ironmangary (2022-12-05 16:22:40)
Offline
#197 2025-02-06 15:44:16
Re: adi_matrix – Multi-article update tabs
For anyone following this thread, I’ve adopted the plugin because it’s too freaking cool and needs keeping alive.
I’ve applied a fix similar to peterj above and practically rewritten the entire plugin as a class, with a much much (much) reduced global footprint. There’s still more work to go but in the process I have:
- Tidied the code for PSR compliance. More work needed here
- Made some inroads on PHP 8 compatibility. Not tested properly yet, so probably a lot more work here too.
- Added CSP-aware JavaScript and CSS. The CSS could really do with taming, and support for dark mode, if anybody has any wisdom here it would be appreciated.
- Improved the admin workflow so you only work on one matrix at a time, which is cleaner, less confusing, less prone to error, and a lot less scrolling.
If anybody wants to take it for a spin, please do.
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
#198 2025-02-06 18:39:23
Re: adi_matrix – Multi-article update tabs
In my admittedly limited testing, it behaves well (including dark mode).
Much of the css is redundant; for the most part I feel it looked and behaved better after I deleted the css block in inspector! I suggest moving the ‘View’ button so it appears in the first table column, and maybe leaving out the ‘eye’ icon altogether.
Good to see this useful; plugin getting some love in.
Offline
#199 2025-02-06 19:05:49
Re: adi_matrix – Multi-article update tabs
Thanks for checking it out. Yeah, the CSS doesn’t seem to do much apart from get in the way. I’m not even sure what most of targets and why. I might take your approach, hack it all out and see what the fallout is!
That eye icon is a bit weird. And the table layout leaves a lot to be desired. Might be better in a CSS grid nowadays, not sure. I’ll take any and all html layout and CSS tweaks to improve the overall aesthetic. The delete icon position irrationally annoys me as well.
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
#200 2025-02-07 00:22:41
Re: adi_matrix – Multi-article update tabs
giz wrote #339014:
I suggest moving the ‘View’ button so it appears in the first table column, and maybe leaving out the ‘eye’ icon altogether.
I’ve done a halfway house:
- Removed the table in favour of flexbox.
- Moved the ‘eye’ icon into the header row of each matrix.
- Made the delete button absolutely positioned, top-right of each matrix.
It’s better. Not perfect, but better. CSS/layout tweaks welcome from anyone.
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
#201 2025-02-07 06:00:24
Re: adi_matrix – Multi-article update tabs
Thanks for adopting this Stef. adi_matrix is indeed one of the most useful plugins.
Just a heads up that I visited your github page on github.com/Bloke/adi_matrix and there is an outdated link for the textpack of the plugin. It would be good if that is updated.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#202 2025-02-07 06:58:26
Re: adi_matrix – Multi-article update tabs
Thanks for the note. I haven’t fixed up the help yet, so I will do that soon.
Edit: done.
Last edited by Bloke (2025-02-07 07:32:08)
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
#203 2025-02-08 07:09:22
Re: adi_matrix – Multi-article update tabs
Some random notes, including layout suggestions
[1] Extensions > Article Matrix (adi_matrix_tab)
- It took me quite a while to discover what that eye icon did. Just the text-string “View”? see e.g. sections panel.
- PluginPreferences at the bottom could be send to the Preferences Panel (the link from to options on the Plugin panels lead to a blank set on the Prefs. panel).
under article display column
- checkboxes should come first in the flow
- then remove all of these two blocks:
.adi_matrix_field p label.adi_matrix_checkbox input {
/* float: left; */
}
.adi_matrix_field p {
/* overflow: hidden; */
/* margin-top: 0; */
/* min-height: 1.4em; */
}
[2] a matrix panel: home > test1 (with scrollbox on)
- there is a call somewhere to
textpattern/txp_img/arrowupdn.gif
which is 404. It is probably not needed anyway (leave to themes) - if a footer is enabled, use the (same) markup as seen in the
thead
. - remove
.txp-list th, .txp-list td {padding-left: 0.5em}
and leave that to admin themes - the Save button below the table –
div.adi_matrix_button
should be a standard<p class="adi_matrix_button" />
- why do both the
<table/>
and the<form />
have the same classesadi_matrix_matrix
adi_matrix_scroll
?.txp-list
appears also on both. Leave that one on the table only. - The navigation at the bottom should be wrapped in
div.txp-layout-cell-row.txp-navigation
– the articles panel is your guide…
- set {position: relative} on the form.adi_matrix_matrix.adi_matrix_scroll (Containing block for the positioned column)
- consider using container based units (
cqi
) instead of%
for that positioning system
that would avoid sending that first column partly offscreen on not-so-large windows:
form.adi_matrix_matrix.adi_matrix_scroll {
position: relative;
container-type: inline-size;
container-name: addi-matrix-box;
}
.adi_matrix_scroll div.scroll_box {
width: 87cqi;
margin-left: 13cqi;
}
.adi_matrix_scroll table#list th:first-child,
.adi_matrix_scroll table#list td:first-child {
width: 13cqi
box-sizing: border-box;
}
for the pencil icon: the span should have the classes: ui-icon ui-icon-pencil
the icon hangs outside of the box (.adi_matrix_field_title { white-space: nowrap }
) then you can remove all styling added by the plugin leave the sizing to the theme
.adi_matrix_edit_link span {
/* display: inline-block; */
/* width: 20px; */
/* height: 20px; */
}
The navigation at the bottom should be wrapped in div.txp-layout-cell-row.txp-navigation
– the articles panel is your guide…
screenshot before dev.l-c-n.com/_b/matrix_before.png and after dev.l-c-n.com/_b/matrix_after.png
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
#204 2025-02-08 08:11:06
Re: adi_matrix – Multi-article update tabs
Wow. That’s amazing thank you. When I’m next at my laptop I’ll go through all your suggestions and implement them.
Btw, did you see I got rid of the table on the matrix admin panel in favour of flexbox? Is that a good move do you think, or is the table better, combined with your changes above?
I did make a note in the code somewhere about moving the prefs to where they should be. That blank page on plugin->options is annoying so I’ll probably tackle all that next.
Once again, thank you for this excellent advice.
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