Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Maxell,
Sorry for late reply, I had a problem with email sending :(.
Regarding your questions, it's not possible now to show/hide a specific field (which is in the development plan) and tabs (no plan yet).
Your ideas are very nice, I'll think about that. Thank you very much!
Anh Tran
KeymasterThe
better-include.phponly add conditions to show/hide whole meta box for a specific page, so it doesn't affect Group extension. Just define groups as normally, nothing changed.Anh Tran
KeymasterHi, that's great. I thought about the same idea, but didn't have time to implement that. If you don't mind, can you share with other people via a pull request on Github?
Anh Tran
KeymasterYes they do. They all work together. Please try.
If you need any help, please let me know.
Anh Tran
KeymasterI'm sorry for that confusing. I've just updated the Tabs extension to make it work with Group extension. Please update the Tabs extension.
Here is the sample code to create 2 tabs, each tab contain 1 group (clonable):
Anh Tran
KeymasterHi,
I'm afraid Group and Tabs can't work together. Both these extensions change the way fields output HTML and unfortunately these ways are not compatible to each other (Group is using output buffering to capture all sub-fields output, while tabs does not).
The only good news is both of them can work with Columns extension :). So I think you should separate fields into several meta boxes: some use Tabs, some use Group when possible.
Anh Tran
KeymasterHi,
How did you convert existing data to group of fields?
Anh Tran
KeymasterHi,
All you need is just specify
post_typesparameter for meta box when define it. This parameter is optional and gets default value ispost. So if you want to set meta box forpostonly, you can ignore this parameter as I did in the sample code.For more information, please see this documentation.
Anh Tran
KeymasterHi brainbytescreativellc, as riseoflex88 said, it's not possible for now. The hardest part of cloning image field comes from how it saves data. But if you want to clone a single image, you can use the
file_inputfield, which allows you to select only 1 image and saves image URL as meta data.Anh Tran
KeymasterThank you for your solution. I'll check that again and add to new version of Meta Box.
Anh Tran
KeymasterHi evoknow, I'm glad you solved the problem. Perhaps the description of 2 extensions is confusing. I'll update them now to make it clearer.
Thanks and best regards
Anh Tran
KeymasterGreat, I've just re-tested with Firefox and see the same result.
PS: Yes, I work on custom projects, but I'm full of work now. Maybe in the next 2 months ๐
Anh Tran
KeymasterHi Maxell, I've just retested the color picker with Columns extension. In my test, the "picker" isn't resized like in your screenshot:

Can you please give me code for registering meta boxes to check it again? Also can you try with latest version of Meta Box and clear cache?
Thanks.
Anh Tran
KeymasterHi,
Currently both Include/Exclude and Show/Hide (JS) extensions cannot do that. They work with conditions from outside meta box (like post ID, taxonomy, etc.). What you are asking for is similar to Conditional Logic and I have a plan to develop it. I will announce when it's ready.
Thanks and regards.
-
AuthorPosts