CustomModels as Directories

Support MB Custom Table CustomModels as Directories

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42618
    GVGV
    Participant

    Hi, how its possible to add to MetaBox (or CustomPostType or CustomModel) Select dropdown field to choose values from another CustomModel (standalone DB table) and store selection by ID?
    For example create new MetaBox "Cars" and directory "Fuel" - which your MetaField can get values from table 'Fuel" at dashboard "Cars" editing?

    #42637
    PeterPeter
    Moderator

    Hello,

    The custom model does not work with the post field to display a dropdown field to choose a model and save its ID. You will need to use the select field and create a custom function to generate options with a list of models.
    Please read more about the pros and cons of the custom model in the documentation https://docs.metabox.io/extensions/mb-custom-table/#custom-models

    #42645
    GVGV
    Participant

    🤦
    JetEngine and Pods can do this via dashboard with no coding.
    Please, improve your plugin also!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.