Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Add_more doesn't save in settings page #6445
    mariusnicula
    Member

    Here is the code for that section:

    <?php
    /*
    Title: Footer Section
    Setting: piklist_settings
    */

    piklist(‘field’, array(
    ‘type’ => ‘group’,
    ‘scope’ => ‘post_meta’,
    ‘field’ => ‘footer_options’,
    ‘fields’ => array(

    array(
    ‘type’ => ‘file’,
    ‘field’ => ‘option_image’,
    ‘scope’ => ‘post_meta’,
    ‘label’ => ‘Option Image’,
    ‘options’ => array(
    ‘modal_title’ => ‘Add Image’,
    ‘button’ => ‘Add’
    ),
    ‘validate’ => array(
    array(
    ‘type’ => ‘limit’,
    ‘options’ => array(
    ‘min’ => 1,
    ‘max’ => 1
    )
    )
    ),
    ‘columns’ => 12
    ),

    array(
    ‘type’ => ‘text’,
    ‘scope’ => ‘post_meta’,
    ‘field’ => ‘option_link’,
    ‘label’ => ‘Option Link’,
    ‘position’ => ‘wrap’,
    ‘columns’ => 6
    ),

    ),
    ‘label’ => ‘Footer Networks’,
    ‘position’ => ‘wrap’,
    ‘add_more’ => true,
    ‘columns’ => 12
    ));

    ?>

    in reply to: Problem in backend #6441
    mariusnicula
    Member

    I am using the latest version, 0.9.9.8

    <?php
    /*
    Title: About us team
    Template: tpl_about
    */

    piklist(‘field’, array(
    ‘type’ => ‘group’,
    ‘scope’ => ‘post_meta’,
    ‘field’ => ‘team_members’,
    ‘fields’ => array(

    array(
    ‘type’ => ‘file’,
    ‘field’ => ‘member_image’,
    ‘scope’ => ‘post_meta’,
    ‘label’ => ‘Team Member Image’,
    ‘options’ => array(
    ‘modal_title’ => ‘Add Image’,
    ‘button’ => ‘Add’
    ),
    ‘validate’ => array(
    array(
    ‘type’ => ‘limit’,
    ‘options’ => array(
    ‘min’ => 1,
    ‘max’ => 1
    )
    )
    )
    ),

    array(
    ‘type’ => ‘text’,
    ‘scope’ => ‘post_meta’,
    ‘field’ => ‘member_name’,
    ‘label’ => ‘Team Member Name’,
    ‘position’ => ‘wrap’
    ),

    array(
    ‘type’ => ‘text’,
    ‘scope’ => ‘post_meta’,
    ‘field’ => ‘member_title’,
    ‘label’ => ‘Team Member Title’,
    ‘position’ => ‘wrap’
    ),

    array(
    ‘type’ => ‘textarea’,
    ‘field’ => ‘member_description’,
    ‘label’ => ‘Team Member Description’,
    ‘attributes’ => array(
    ‘rows’ => 10,
    ‘cols’ => 50
    )
    )

    ),
    ‘label’ => ‘Team Members’,
    ‘position’ => ‘wrap’,
    ‘add_more’ => true
    ));

    ?>

    in reply to: Problem with image field on v0.9.9 #6418
    mariusnicula
    Member

    any help please?

    in reply to: Problem with image field on v0.9.9 #6413
    mariusnicula
    Member

    I’ve figured it out, just changed a few things in the file upload field, like this:
    array(
    ‘type’ => ‘file’,
    ‘field’ => ‘member_image’,
    ‘scope’ => ‘post_meta’,
    ‘label’ => ‘Team Member Image’,
    ‘options’ => array(
    ‘modal_title’ => ‘Add Image’,
    ‘button’ => ‘Add’
    ),
    ‘validate’ => array(
    array(
    ‘type’ => ‘limit’,
    ‘options’ => array(
    ‘min’ => 1,
    ‘max’ => 1
    )
    )
    )
    )

    But now I still have the problem of ‘eld]eld]’ in the backend. How do I remove this and is there any way to order the fields more nicely when viewed in wordpress?

    Attachments:
    You must be logged in to view attached files.
Viewing 4 posts - 1 through 4 (of 4 total)