Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  grabbing images in folders for display

phpMyEdit General     grabbing images in folders for display
Post new topic   Reply to topic    
 
lelales     Joined: 31 Jan 2004   Posts: 19  
Post 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
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy