Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 26. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Give URL to the navigation buttons

phpMyEdit General     Give URL to the navigation buttons
Odoslať novú tému   Odpovedať na tému    
 
pj     Založený: 02.07.2014   Príspevky: 2  
Príspevok Zaslal: 2014-07-02 08:37
Návrat hore  Odpovedať s citátom     

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     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2014-07-02 19:10
Návrat hore  Odpovedať s citátom     

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
);

 
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