Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Pass field description instead of field value

phpMyEdit Configuration     Pass field description instead of field value
Odoslať novú tému   Odpovedať na tému    
 
cvuijlst     Založený: 15.05.2008   Príspevky: 1  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov