Titan-Framework
Titan-Framework copied to clipboard
Three new fields - MultiText ( repeatable text), Single Image and Gallery field
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.
This is huge :D
So will you please merge the pull? Specially these fields will be very useful for many people out there
We need to push 1.6 first, then we will tackle this next.
Time to merge?
How come this hasn't been merged yet!?
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 .
BUMP! When is this getting merged?
BUMP!
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