Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Linking entries not working

phpMyEdit General     Linking entries not working
Odoslať novú tému   Odpovedať na tému    
 
johnny     Založený: 27.01.2004   Príspevky: 3  
Príspevok Zaslal: 2004-01-28 03:43
Návrat hore  Odpovedať s citátom     

I want the values in one of my columns to be clickable. I don't know where to put the 'url'

Right now here is the information from my php file about the column I want to be clickable:

$opts['fdd']['teamname'] = array(
'name' => 'Teamname',
'select' => 'T',
'maxlen' => 25,
'required' => true,
'sort' => true
);

so where do i put in the url information? I've tried just about EVERYWHERE and the page comes up fine but with NO links.

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-01-28 09:24
Návrat hore  Odpovedať s citátom     

You may want to use 'URL' and not 'url'....

All phpMyEdit options are case-sensitive.

-Hugues

 
nepto     Založený: 06.01.2003   Príspevky: 320   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-01-28 21:54
Návrat hore  Odpovedať s citátom     

This is due to backward compatibility and historical reasons.

_________________
Ondrej Jombik (Nepto)
Visit my homepage , review my recent CV or projects and give me some feedback .
 
lelales     Založený: 31.01.2004   Príspevky: 19  
Príspevok Zaslal: 2004-02-01 00:58
Návrat hore  Odpovedať s citátom     

the link works in the myphpedit tables, but what do I put in place of $value?


Obviously I would have to create a php page that loads the image and allows for deletion or updating.


here's my code

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://background_imgae.php=?$value';


Do i have to create a 'value' element in my [bckgrnd_image] array?

I'm just getting started so any hekp is appreciated.

Thanks

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-02-02 11:21
Návrat hore  Odpovedať s citátom     

Kód:
$opts['fdd']['bckgrnd_image']['URL'] = 'http://background_image.php?myfieldname=$value';


and in background_image.php

echo '<img src="'.$_GET['myfieldvalue'].'"/>';

 
lelales     Založený: 31.01.2004   Príspevky: 19  
Príspevok Zaslal: 2004-02-02 23:40
Návrat hore  Odpovedať s citátom     

here's the code

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/bckgrnd_img.php?bckgrnd_img=$value';


But I need to specifiy the page name in my url

I have a page name field in the template

Kód:
$opts['fdd']['page_name'] = array(
  'name'     => 'Page name',
  'select'   => 'T',
  'maxlen'   => 30,
  'sort'     => true
);


do I do it like this?
Kód:
$opts['fdd']['bckgrnd_image']['URL'] = 'http://www.caillouette.com/phpMyEdit/bckgrnd_img.php?page_name=$value&&bckgrnd_img=$value';


Is this correct?
If so, what should the php page "bckgrnd_img" look like?

thanks

 
hbernard     Založený: 23.03.2003   Príspevky: 159   Bydlisko: FRANCE
Príspevok Zaslal: 2004-02-03 06:57
Návrat hore  Odpovedať s citátom     

It is not correct. phpMyEdit can't access in 'URL' the values from other fields.
To achieve this, you have to use some more flexible options, like 'sql' (Search the archives, Doug post a full sample not so long ago).

I'm not sure I understand your last question...
If you don't know what should the page look like, then, you should be aware that these forums are not exactly the right place to learn php/html.

Anyway, this is in the sample, somewhere in th archives.

Update- Here:
http://opensource.platon.sk/forum/projects/viewtopic.php?t=250

 
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