HI there,
I'm trying to filtering a dynamic dropdown by "catid" but I'm not able to do it...
This is the code for the dynamic dropdown that populate the array with aticles "name", in this situation i got all the articles name from all the categories, I need to load only froma a single one...
anyone could help me?
I'm not use to php...
thanks!
I'm trying to filtering a dynamic dropdown by "catid" but I'm not able to do it...
This is the code for the dynamic dropdown that populate the array with aticles "name", in this situation i got all the articles name from all the categories, I need to load only froma a single one...
anyone could help me?
I'm not use to php...
thanks!
<?php
$keys = \GCore\Libs\Arr::getVal(\GCore\Libs\Arr::getVal($form->data, explode(".", "f70z2_content")), explode(".", "[n].title"));
$values = \GCore\Libs\Arr::getVal(\GCore\Libs\Arr::getVal($form->data, explode(".", "f70z2_content")), explode(".", "[n].title"));
$options = array_combine($keys, $values);
$field = array (
'name' => 'Pos_Ape',
'id' => 'pos_ape',
'options' =>
array (
),
'empty' => 'nessuna',
'values' =>
array (
),
'label' =>
array (
'text' => 'Posizioni Aperte di Interesse #',
'position' => 'top',
),
'sublabel' => 'Scegli una posizione aperta di interesse',
'multiple' => '0',
'size' => '',
'class' => ' validate[\'required\']',
'title' => '',
'style' => '',
'params' => '',
':data-load-state' => '',
':data-tooltip' => '',
'type' => 'dropdown',
'container_id' => '0',
);
$field["options"] = $options;
echo \GCore\Helpers\Html::formLine($field["name"], $field);
?><fieldset class="chronoform-container" id="Carica-CV">