Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

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

Open hasinhayder opened this issue 10 years ago • 9 comments

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 avatar Sep 13 '14 12:09 hasinhayder

This is huge :D

bfintal avatar Sep 19 '14 11:09 bfintal

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

hasinhayder avatar Sep 19 '14 15:09 hasinhayder

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

oherman avatar Sep 29 '14 08:09 oherman

Time to merge?

vladcosorg avatar Mar 27 '15 05:03 vladcosorg

How come this hasn't been merged yet!?

joearcher avatar Feb 07 '16 19:02 joearcher

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 https://github.com/gambitph/Titan-Framework/pull/177#issuecomment-181087611 .

oherman avatar Feb 07 '16 19:02 oherman

BUMP! When is this getting merged?

fa7ad avatar Sep 03 '16 07:09 fa7ad

BUMP!

IzaacJ avatar Mar 02 '17 23:03 IzaacJ

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

codeclinic avatar Dec 03 '19 09:12 codeclinic