Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • rcreators
    Member

    Hi Steve,

    Thanks for the quick check on it. Was never thought to put admin.php in page list. Also i like to know, do you have planning to add functionality by which developers can add their custom database table and generate cross query and other stuff with Piklist. Also generating field with specific custom table data and make cross entry with it in another custom table. I am not sure is it possible right now or not as user guide not having something like that.

    rcreators
    Member

    @steve – Sent @ support email id.

    rcreators
    Member

    That was little bit tricky with Core PHP.

    I did Array_combine with my values and it worked. Now field value is actual field name rather than 0,1,2,3

    Here is final code:

    /*
    Title: User Department
    Description: Select department for user.
    Capability: manage_wp_hr
    */
    
    $user_departments = get_option('wp_hr_departments'); // Getting Setting
    $user_department = $user_departments['departments']; // Getting array value of repeat field
    $user_department_array = array_combine($user_department, $user_department); // Generating new array where value and key both are same
    
    piklist('field', array(
    	'type' => 'checkbox'
    	,'field' => 'user_department'
    	,'label' => 'User Department'
    	,'attributes' => array(
    		'class' => 'text'
    	)
    	,'choices' => $user_department_array
    ));

    Hope this will help someone in future.

    rcreators
    Member

    Hello,

    I just updated to beta version on piklist, One thing is already sorted which is first item can select now. But second problem is still there.

    From repeat field if i changed the order, my old selection also changed.

    While this order : http://i.imgur.com/uPtW2GH.png – result in selection is this : http://prntscr.com/8pjg4e

    Now i just changed order in repeat field – This order : http://prntscr.com/8pjgib – result also changed in selection : http://prntscr.com/8pjgu6

    I think from above you get my point. Changing order is changing selection. It won’t be happen like that. If i change the order. on profile page only order needs to update, selection needs to be remains same values.

    in reply to: Settings page Tabs broken: Piklist 0.9.9.1 #4499
    rcreators
    Member

    Hello,

    Yes setting tabs are broken in 0.9.9.1 which was working in older version. i just updated piklist beta 0.9.9.1 and my old tabs gone, everything is on main page.

Viewing 5 posts - 1 through 5 (of 5 total)