Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 28. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Can a variable or field value be in aURLprefix?

phpMyEdit Installation     Can a variable or field value be in aURLprefix?
Odoslať novú tému   Odpovedať na tému    
 
guardian46     Založený: 31.05.2005   Príspevky: 34  
Príspevok Zaslal: 2010-11-21 19:25
Návrat hore  Odpovedať s citátom     

I have this:
Kód:
$opts['fdd']['filename']['URLprefix'] = 'files/categorya/';
in my configuration.

I'd like to replace 'categorya' with a variable that will use the folder name in which the file resides. In other words, my folder 'files' had sub-folders 'categorya - categoryz', is there a way to enter the file name in the 'filename' field and have the URLprefix value be entered as the value of another field (field with all the sub-folder names) in the table?

Any help appreciated. Thanks.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2010-11-22 20:33
Návrat hore  Odpovedať s citátom     

If you omit the built-in usage of URL-type options, you can build your custom link using the MySQL CONCAT function. Search the forum for CONCAT and HREF to find some examples of custom links.

 
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