We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 52430
    • 2 Posts
    Hello!
    Help me please!
    I have custom package

    <?xml version="1.0" encoding="UTF-8"?>
    <model package="crm" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1">
         
     
        <object class="Client" table="client" extends="xPDOSimpleObject">
     
     
     
            <field key="name" dbtype="varchar" precision="200" phptype="string" null="true" />
            <field key="email" dbtype="varchar" precision="200" phptype="string" null="true" />
            <field key="phone" dbtype="varchar" precision="200" phptype="string" null="true" />
            <field key="url" dbtype="varchar" precision="200" phptype="string" null="true" />
            <field key="message" dbtype="varchar" precision="512" phptype="string" null="true" />
          
            <field key="deleted" dbtype="int" precision="11" phptype="integer" null="false" default="0" />
            <field key="published" dbtype="int" precision="11" phptype="integer" null="false" default="1" />
            <index alias="id" name="id" primary="false" unique="true" type="BTREE" >
                <column key="id" length="" collation="A" null="false" />
            </index>
             
            <composite alias="ClientPhoto" class="ClientPhoto" local="id" foreign="photo_client_id" cardinality="many" owner="local" />
         
        </object>
        <object class="ClientPhoto" table="client_photo" extends="xPDOSimpleObject">
     
            <field key="photo_name" dbtype="varchar" precision="255" phptype="string" null="true" />
            <field key="photo_client_id" dbtype="int" precision="11" phptype="integer" null="true" />
            <field key="photo_file" dbtype="varchar" precision="20" phptype="string" null="true" />
            <field key="deleted" dbtype="int" precision="11" phptype="integer" null="false" default="0" />
            <field key="published" dbtype="int" precision="11" phptype="integer" null="false" default="1" />
            <index alias="id" name="id" primary="false" unique="true" type="BTREE" >
                <column key="id" length="" collation="A" null="false" />
            </index>
             
            <aggregate alias="Client" class="Client" local="photo_client_id" foreign="id" cardinality="one" owner="foreign" />     
             
        </object>
     
         
    </model>
    


    In formtabs i'm create some fields


    And i need multiple relationship image upload field in list. it's possible?
    Sorry my English!
      • 4172
      • 5,888 Posts
      your clientPhotos - field has to be a intputTVtype 'migxdb'
      with its own config.

      In the config for this grid, you need
      joinalias: Client
      has Connection table: no
      check Resource: yes
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 52430
        • 2 Posts
        Quote from: Bruno17 at Jun 24, 2016, 05:03 AM
        your clientPhotos - field has to be a intputTVtype 'migxdb'
        with its own config.

        In the config for this grid, you need
        joinalias: Client
        has Connection table: no
        check Resource: yes


        Hi, thanks!
        Ok i have empty table in fields


        Next i need create clientPhotos migx ?