| Index
» Projects
» phpMyEdit
» Forum
» Linking entries not working |
 |
johnny
Joined: 27 Jan 2004
Posts: 3
Posted: 2004-01-28 03:43
Back to top
Reply with quote
|
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
Joined: 23 Mar 2003
Posts: 159
Location: FRANCE
Posted: 2004-01-28 09:24
Back to top
Reply with quote
|
You may want to use 'URL' and not 'url'....
All phpMyEdit options are case-sensitive.
-Hugues
|
nepto
Joined: 06 Jan 2003
Posts: 320
Location: Phoenix, Arizona (USA)
Posted: 2004-01-28 21:54
Back to top
Reply with quote
|
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
Joined: 31 Jan 2004
Posts: 19
Posted: 2004-02-01 00:58
Back to top
Reply with quote
|
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
| 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://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
Joined: 23 Mar 2003
Posts: 159
Location: FRANCE
Posted: 2004-02-02 11:21
Back to top
Reply with quote
|
| Code: |
$opts['fdd']['bckgrnd_image']['URL'] = 'http://background_image.php?myfieldname=$value';
|
and in background_image.php
echo '<img src="'.$_GET['myfieldvalue'].'"/>';
|
lelales
Joined: 31 Jan 2004
Posts: 19
Posted: 2004-02-02 23:40
Back to top
Reply with quote
|
here's the code
| 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/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
| Code: |
$opts['fdd']['page_name'] = array(
'name' => 'Page name',
'select' => 'T',
'maxlen' => 30,
'sort' => true
); |
do I do it like this?
| Code: |
| $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
Joined: 23 Mar 2003
Posts: 159
Location: FRANCE
Posted: 2004-02-03 06:57
Back to top
Reply with quote
|
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
|
|
Post new topic
Reply to topic
|
|
|
|