| Index
» Projekty
» phpMyEdit
» Fórum
» Hiding Buttons! |
 |
Justin Baker
Založený: 10.04.2007
Príspevky: 13
Zaslal: 2007-04-18 17:07
Návrat hore
Odpovedať s citátom
|
OK another tidbit I cant seem to work out.
I have the text links on the side of each entry in the main list of data... :"C D" for change or delete.
so on the bottom I dont want the CHANGE or DELETE buttons there as they dont work since you cant select anything.. so i want them to be removed.
So I have looked and found this but it dodnt work!
$opts['buttons']['L']['up'] = array('<<','<','add','-view','-change','-copy','-delete','>','>>','goto','goto_combo');
$opts['buttons']['L']['down'] = $opts['buttons']['L']['up'];
It still shows the CHANGE and DELETE. The reason I want them to be in the rows is that the lists are really long and it would be easier to click on the "C" or "D" next to that particular row to go directly to the edit page.
I cant disable them cause then they wont appear in the rows allowing the user to edit them. I dont need them on the bottom is this impossible to change!?
|
aeiche
Založený: 06.04.2007
Príspevky: 10
Zaslal: 2007-04-19 20:18
Návrat hore
Odpovedať s citátom
|
| Justin Baker Napísal: |
$opts['buttons']['L']['up'] = array('<<','<','add','-view','-change','-copy','-delete','>','>>','goto','goto_combo');
$opts['buttons']['L']['down'] = $opts['buttons']['L']['up'];
It still shows the CHANGE and DELETE. The reason I want them to be in the rows is that the lists are really long and it would be easier to click on the "C" or "D" next to that particular row to go directly to the edit page.
|
It looks like you mixed up a couple of features from the documentation. At any rate, I think the code you want is something like this:
| Kód: |
| $opts['buttons']['L']['up'] = array('<<','<','add','view','copy','>','>>','goto','goto_combo'); |
Note that change and delete are gone. The '-' symbol removes disabled buttons. Since your buttons need to be enabled, that won't work for you. Give that a shot.
(If It doesn't work, I apologize. I'm just learning PHPmyEdit myself.)
|
Justin Baker
Založený: 10.04.2007
Príspevky: 13
Zaslal: 2007-04-19 23:46
Návrat hore
Odpovedať s citátom
|
HI.. yeah I tried that already that was one of the first things I tried.. it didnt work. I think it has to actually edit the class file. I will probly experiment with that.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|