This topic is locked

using $xt in event

5/12/2009 9:05:48 AM
PHPRunner General questions
M
marke author

Hi Jane
I want to change the default target of the Back to List button on the edit page.
I am trying to use the before Before Display event on the edit page. I see that $xt has an element called backbutton_attrs which has the content I want to change - but I can't see to find the correct php to access this array element.

  • is this the best way to change the button target (I want to avoid the visual editor if at all possible)
  • if it is the best way - how do I access the correct element in $xt.
    thanks for your help
    Mark

J
Jane 5/12/2009

Mark,
yes. To change Back to list button attributes use Edit page: Before display event.

Here is a sample:

$xt->assign("backbutton_attrs","onclick=\"window.location.href='tablename_list.php?a=return'\"");

M
marke author 5/13/2009

Jane
Thanks worked fine
mark