| Index
» Projekty
» phpMyEdit
» Fórum
» grabbing images in folders for display |
 |
lelales
Založený: 31.01.2004
Príspevky: 19
Zaslal: 2004-02-03 01:02
Návrat hore
Odpovedať s citátom
|
Okay I have images in folders
for example
| Kód: |
homepage/background/bckgrnd_img.gif
and
vieux_carre/background/bckgrnd_img.gif
|
and I have the following code to dislpay the image on php update page.
| Kód: |
$opts['fdd']['bckgrnd_image'] = array(
'name' => 'Bckgrnd image',
'select' => 'T',
'maxlen' => 30,
'default' => 'bckgrnd.gif',
'required' => true,
'sort' => true
);
$opts['fdd']['bckgrnd_image']['URL'] = 'http://www.caillouette.com/phpMyEdit_test/bckgrnd_img.php?bckgrnd_img=$value&pagename=$pagename'; |
But the page_name isn't being grabbed.
I have the following in my phpMyEdit code
| Kód: |
$opts['fdd']['page_name'] = array(
'name' => 'Page name',
'select' => 'T',
'maxlen' => 30,
'sort' => true
);
|
What do I have to do to insert the pagename in the url request?
and does "bckgrnd_img=$value" always use the default of "bckgrnd.gif" ?
Thanks
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-02-10 00:25
Návrat hore
Odpovedať s citátom
|
1. if pagename is name of current page, you should use $page variable, if pagename is value in the pagename field, like $row[pagename] you currently cannont adress it. see output control bug for more details.
2. $value is value of your current field and row. it has nothing to do with the 'default' thing.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|