Thanks for your time., I see your name everywhere inside the
software, I’m
happy to have you replying my questions
I think you may have me confused with someone who speaks German…
See etemplate/inc/class.nextmatch_widget.inc.php line 436.
I gave a try to this pre_process() the other day. The point is the
tool bar
is not managed by this part. I made some print_r of every params
received by
the method, and after I searched for them in the generated html. The
button
details never pass there.
What details specifically are you looking for?
You may have the direction backwards, as that’s one place where the
details are set.
So one option would be to check the permissions, then disable your
button with something like:
$nextmatch->disable_cells(‘button_name’,true);
Then the template generator continues to do its thing, turning the
template into HTML.
The other place details are set is in your calling function where you
specify the parameters for the nextmatch.
The disabling would be the same as above, but you would do your
checks, and pass in whether or not you wanted to disable the button:
$nextmatch->disable_cells(‘button_name’,$value[‘no_delete_button’]);
Notice: the template etemplate.nextmatch_widget.nm_row manages only
the tool
bar with the buttons First, Left, Ritgh, Last, exprt csv, etc…
Is this not where you have placed your button?
add an icon in the tool bar near the “csv export”.
Things are different if your button is somewhere else.
Nathan Gray
nathan at goarctic dot com
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers