| Index
» Projects
» phpMyEdit
» Forum
» grabbing images in folders for display |
 |
lelales
Joined: 31 Jan 2004
Posts: 19
Posted: 2004-02-03 01:02
Back to top
Reply with quote
|
Okay I have images in folders
for example
| Code: |
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.
| Code: |
$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
| Code: |
$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
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2004-02-10 00:25
Back to top
Reply with quote
|
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.
|
|
Post new topic
Reply to topic
|
|
|
|