We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44883
    • 3 Posts
    My Setup:

    • MODX Revo 2.2.9-pl
    • MyComponent 3.1.1-pl
    • Fresh MODX Cloud install
    Using 'Bootstrap' on the MyComponent front-end to create the elements...

    So all settings are created by the myComponent package except for the input_properties (allow blank) settings.... What am I doing wrong???

    'templateVars' => array(
        'flex_orbit_slider' => array(
            'category' => 'Image slider',
            'description' => 'Select \'Yes\' to display a image slider on this resource',
            'caption' => 'Show the image slider',
            'type' => 'option',
            'elements' => 'Yes==yes||No==no',
            'default_text' => 'no',
            'templates' => array(
                'Homepage - Flexibility 4' => 1,
            ),
            'input_properties' => array(
                'allowBlank' => 'false',
            ),
        ),
    ),


    I also need this one to work, again all is working fine excpet for the 'input_properties'...

    'flex_orbit_items' => array(
        'category' => 'Image slider',
        'description' => 'Add, sort and endit the slider images',
        'caption' => 'Image slider items',
        'type' => 'migx',
        'input_properties' => array(
            'formtabs' => '[
                {"caption":"Info", "fields": [
                    {"field":"title","caption":"Slide title"},{"field":"description","caption":"Slide content (optional)","inputTVtype":"richtext"}
                ]},
                {"caption":"Image", "fields":[
                    {"field":"image_small","caption":"Slide image small (Smaller version of the image make it 480px wide)","inputTVtype":"image"},
                    {"field":"image_medium","caption":"Slide image medium (Medium version of the image make it 738px wide)","inputTVtype":"image"},
                    {"field":"image_large","caption":"Slide image large (Large version of the image make it 970px wide)","inputTVtype":"image"}
                ]}
            ]',
            'columns' => '[
                {"header": "Slide content", "width": "160", "sortable": "true", "dataIndex": "title"},
                {"header": "Slide image", "width": "50", "sortable": "false", "dataIndex": "image_small","renderer": "this.renderImage"}
            ]',
        ),
        'templates' => array(
            'Homepage - Flexibility 4' => 2,
        ),
    ),

    This question has been answered by ThaClown. See the first response.

    [ed. note: ThaClown last edited this post 13 years, 1 month ago.]
    • discuss.answer
      • 44883
      • 3 Posts
      Nevermind, was using the wrong component... DUH!!!
        • 3749
        • 24,544 Posts
        That will do it. wink
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting