Forum Replies Created
-
AuthorPosts
-
wgstjf
ParticipantThanks Long, really appreciate it.
Cheers,
Will
wgstjf
ParticipantHi,
Any update on getting the following protection put in place? As there is no 'bin' when using a custom model we need to protect clients from accidentally deleting records
https://support.metabox.io/topic/custom-model-needs-additional-hooks-please/#post-31094
Thanks in advance.
Will
wgstjf
ParticipantThanks Long,
Looking forward to seeing an update to this plugin to add in this and the other hooks/features mentioned in my other posts over the past couple of months. Making it more extendable will really bring this plugin into its own!
Cheers,
Will
wgstjf
ParticipantTHanks Long ๐
wgstjf
ParticipantOne more request for the dev team if you can face it... ๐
It would be great to be able to target the various MB Custom Table admin views in CSS. Currently each screen in the admin area has the same body classes. In standard WordPress CPTs you can target classes such as 'edit-php' or 'post-php' to differentiate between a List Table view, or an Add or Edit one.
Thanks in advance,
Will
wgstjf
ParticipantThanks as always Long. Here's hoping they make it into the next release ๐
wgstjf
ParticipantSorry, I know I bombarding you...
Could you also add in some form of confirmation before items are deleted?
A modification of the list-table.js to something like this would be perfect.
// Delete an item. $( document ).on( 'click', '.row-actions .delete a', function( e ) { e.preventDefault(); if (confirm('Are you sure you want to delete this item? This action cannot be undone.')) { // Add this in const $this = $( this ); $.post( ajaxurl, { action: 'mbct_delete_items', ids: [ parseInt( $this.data( 'id' ), 10 ) ], model: $( 'input[name="model"]' ).val(), _ajax_nonce: MbctListTable.nonceDelete, }, response => { if ( response.success ) { $this.closest( 'tr' ).css( 'background', '#ff8383' ).hide( 'slow', function() { $( this ).remove(); } ); } else { alert( response.data ); } } ); } } );wgstjf
ParticipantLong,
Thanks for your suggestion that we talke a look at the Model.php file. Having done so we've managed to achieve 99% of what we need.
One final issue remains...how can we change the Primary Column. MB Custom Table inserts the 'id' column and this has the row actions within in. We are looking to move these row actions to another column. We would usually have used the following filter 'list_table_primary_column' but this seems not to have an effect.
Thanks,
Will
wgstjf
ParticipantThanks Long, very helpful!
Just to clarify - on #2 I am not trying to change the actual Submit button but instead add content to the same postbox above the button iteself, eg.
Created: 01/09/2021
Modified: 23/09/2022wgstjf
ParticipantThanks Long but I am really looking to do this more at a code level than via another plugin. Are there any hooks that we can utilise to define the columns and their respective content?
Cheers,
Will
wgstjf
ParticipantSorry one more thing...
Is there any way to control the h1 heading when editing an existing record? Currently it is 'Edit Item #<ID>. I'd like to be able to use one of my custom fields to insert the record name eg. "Edit Item: John Smith"
All the best,
Will
wgstjf
ParticipantJust checking in on this again. Any update on when this much-desired functionality will be released?
Cheers,
Will
wgstjf
ParticipantWonderful thanks. For some reason the first option didn't work but the second did so problem solved!
Cheers,
Will
wgstjf
ParticipantHi guys,
Just about to start a new project and would love to have this functionality? Any progress on this feature addition?
Cheers,
Will
September 18, 2020 at 4:24 PM in reply to: โ Helper function only returning single result from checkbox list #21939wgstjf
ParticipantMorning Long and thanks for staying with this. Very strange events here...I tried a few debugging options including resorting to default themes, trying different versions of MB and re-coding the function initialising the metaboxes, all with not joy. I then put it all back as it was and suddenly I am getting the desired array returned. I have no idea what happened here...but it is seemingly all working properly now.
Thanks.
Will
-
AuthorPosts