| Index
» Projects
» phpMyEdit
» Forum
» Give URL to the navigation buttons |
 |
pj
Joined: 02 Jul 2014
Posts: 2
Posted: 2014-07-02 08:37
Back to top
Reply with quote
|
Hello,
I'm really stuck trying to create this feature without results.
I need to create a URL when I click 'ADD' in the navigation buttons, in a way to pass specific parameters through the URL.
Currently if I click the Add button, it send to fill the form to add a new record but the URL has no changes.
Any help will be appreciated.
Thanks,
PJ
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2014-07-02 19:10
Back to top
Reply with quote
|
There is no built in method to do this, thus you would have to determine what sort of hack to add to the class file. What parameters are you passing and do they apply to all users? Use the forum search box to look for examples of dummy (virtual) fields along with CONCAT. A combination of these would allow you to create a new column item for your personal Add button, and create whatever link you need.
// Pass the field named `primary_domain_name` in a link to another form such that
// the passed `primary_domain_name` is used as a filter in the other form's List mode.
$opts['fdd']['dummy2'] = array (
'name' => 'Edit',
'sql|VLF' => 'if(primary_domain_name <> "",
CONCAT("<a href=\"data.php?s=22&PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=1&PME_sys_qf1=", primary_domain_name, "\" target=\"_blank\">Edit</a>"),
"")',
'options' => 'VLF',
'input' => 'R',
'escape' => false,
'sort' => false
);
|
|
Post new topic
Reply to topic
|
|
|
|