Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterI pushed a new version yesterday with an improvement for this. Please just update.
July 25, 2017 at 8:41 AM in reply to: FireFox Bug Re-ordering Photos using Image Advanced Field #6411Anh Tran
KeymasterHi Matt, I just realized this bug some days ago and fixed it.
Can you please try the latest version on Github and let me know if it works?
Thanks.
Anh Tran
KeymasterThanks for your reply. I see 1 problem with the syntax above: what if we have multiple
flex-item?Currently, we're working on an improved version of Columns, which supports syntax like this (similar to tabs):
$meta_boxes[] = array( 'title' => 'Test Columns', 'columns' => array( 'column-1' => 4, // Short syntax 'column-2' => array( 'size' => 8, 'class' => 'custom-class' ), // Advanced syntax ), 'fields' => array( array( // ... 'column' => 'column-1', ), array( // ... 'column' => 'column-2', ), ), );I think this syntax makes thing easier to implement. I tried using nested syntax, but it requires to completely rewrite the plugin, which might break backward compatibility.
I'll think more about the flex syntax. My goal is making it as simple as possible. Currently, I see it's kind of complicated.
Anh Tran
KeymasterOops, I used the short array syntax, which is available for PHP >= 5.4. Just fixed it in 1.2.10.
Thanks a lot for reporting!
Anh Tran
KeymasterOh, I see your custom code set a column
showand you have a custom field with the same ID. Then you set that custom field displayed in admin columns, which already exists there. It might be confused. I'd suggest removing your custom code and try again.Anh Tran
KeymasterI got it. The thing is we couldn't load the meta box or fields for a specific page in admin. Because the code need to run not only when showing fields, but also when saving fields. And the saving part requires to be run on admin in general.
Anh Tran
KeymasterHi, I'd like to see what you've done with your custom code. I guess you added or renamed an existing column, so Admin Columns extension couldn't find it to "hook" other columns to.
Anh Tran
KeymasterWhat @Jackky recommended is correct. However, in that case you can't use
rwmb_metafor users in the frontend (yes, it works).get_user_metais totally fine.Anh Tran
KeymasterHi Jackky, thanks a lot for your idea.
Can you post what you have in your mind here?
Currently, we're refactoring the Columns extension to allow multiple fields in 1 column. However, to make it backward-compatible, I can't use your syntax (I'd love too). We're moving to use the syntax similar to Tabs extension. It's not optimal, but it works.
Anh Tran
KeymasterFYI:
1. Filter is done with MB Admin Columns v1.2. Please just update. You can also use this plugin to do the same job.
2. Search is done in v1.1. Just add
'searchable' => trueto the field to enable search by that field.Cheers
AnhAnh Tran
KeymasterIt's been a long time, but just want to let you know that the search functionality is done. Please just update the plugin.
Anh Tran
KeymasterFYI, #3 can be resolved with a free plugin.
Anh Tran
KeymasterHi, is that really
admin-columnsor you mistyped? It should beadmin_columns, underscore.Anh Tran
KeymasterCan you post full code of your meta box to check?
PS: I fixed the link in the sidebar. Thanks a lot!
Anh Tran
KeymasterYes, you can always do that with
classattribute of the field. Just add a custom CSS class to the "5-columns" field and change its width with CSS. It's kind of a hack while waiting for a better solution that we're working on. -
AuthorPosts