cvuijlst
Založený: 15.05.2008
Príspevky: 1
Zaslal: 2008-05-15 11:46
Návrat hore
Odpovedať s citátom
|
Hello,
One of my fields is this:
| Kód: |
$opts['fdd']['parentId'] = array(
'name' => 'Plaatsen onder',
'select' => 'D',
'values' => array(
'table' => 'pages',
'filters' => '(parentId IS NULL)',
'column' => 'pageId',
'description' => 'title'
),
'values2' => array(
'0' => ''
),
'maxlen' => 11,
'default' => '0',
'sort' => true,
'options' => 'AVCPD'
); |
I have an other field further on where I pass on the value of parentId:
| Kód: |
$opts['fdd']['path'] = array(
'name' => 'Path',
'select' => 'T',
'maxlen' => 65535,
'sort' => true,
'options' => 'ACH',
'sqlw' => 'IF (parentId <> "", CONCAT(LOWER(title), "/", parentId), LOWER(title))'
); |
This works fine, but I don't want the actual value of parentId, I need what's shown in the description as value in my sqlw statement. Any idea how I can address this description in my sql statement?
| Kód: |
'sqlw' => 'IF (parentId <> "", CONCAT(LOWER(title), "/", parentId['description?']), LOWER(title))'
) |
Thanks for any help!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|