Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three new fields - MultiText ( repeatable text), Single Image and Gallery field #177

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

hasinhayder
Copy link

I've added visibility support for fields based on other field's value. At this moment select and text fields are supported. This can be used as shown in the following example

$panel2 = $titan->createMetabox(array(
    'name' => 'Yo Yo'
));

// Create options for my admin panel
$panel2->createOption(array(
    'name' => 'My Text Option',
    'id' => 'my_text_option',
    'type' => 'text',
    'desc' => 'This is our option'
));
$panel2->createOption(array(
    'name' => 'My Text Option 2',
    'id' => 'my_text_option_2',
    'type' => 'text',
    'desc' => 'This is our option',
    'dependency' => array('id' => 'my_text_option', 'value' => 'yo')
));

$panel2->createOption(array(
    'name' => 'My Select Option',
    'id' => 'my_select_option',
    'type' => 'select',
    'options' => array(
        '1' => 'Option one',
        '2' => 'Option two',
        '3' => 'Option three',
    ),
    'desc' => 'This is a select drop down box',
    'default' => '2',
    'dependency' => array('id' => 'my_text_option', 'value' => 'yo')
));

$panel2->createOption(array(
    'name' => 'My Text Option 3',
    'id' => 'my_text_option_3',
    'type' => 'text',
    'desc' => 'This is our option',
    'dependency' => array('id' => 'my_select_option', 'value' => '1')
));

see how dependency parameter is added in each of these fields. I have also added necessary javascript which performs the validation. Works fine for all containers.

@hasinhayder hasinhayder changed the title Support for Field's visibility based on other field's value Support for Field's visibility based on other field's value & A new gallery field Sep 15, 2014
@hasinhayder hasinhayder changed the title Support for Field's visibility based on other field's value & A new gallery field Three new fields - MultiText ( repeatable text), Single Image and Gallery field Sep 17, 2014
@bfintal
Copy link
Contributor

bfintal commented Sep 19, 2014

This is huge :D

@hasinhayder
Copy link
Author

So will you please merge the pull? Specially these fields will be very useful for many people out there

… dependency on other field's value then all the fields which are depending on this field also hides
…port for metabox display condition based on page templates
…port for metabox display condition based on page templates
@oherman
Copy link
Contributor

oherman commented Sep 29, 2014

We need to push 1.6 first, then we will tackle this next.

@vladcosorg
Copy link
Contributor

Time to merge?

@joearcher
Copy link

How come this hasn't been merged yet!?

@oherman
Copy link
Contributor

oherman commented Feb 7, 2016

We have our hands full right now, but we'll look at this on the next
working day.

On Mon, Feb 8, 2016 at 3:11 AM, Joe Archer [email protected] wrote:

How come this hasn't been merged yet!?


Reply to this email directly or view it on GitHub
#177 (comment)
.

@fa7ad
Copy link

fa7ad commented Sep 3, 2016

BUMP! When is this getting merged?

@IzaacJ
Copy link

IzaacJ commented Mar 2, 2017

BUMP!

@codeclinic
Copy link

Hi @hasinhayder

I'm trying to resurrect this framework. Please add your pull reqest to my repo and let's get this thing active again.

https://github.com/codeclinic/Abased-Titan-Framework

Thanks
Phill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants