Weird probl. with custm get variable to URL for comp. button - Joomla! Forum - community, help and support
hi
forget this:
looks there files present on server, not in develop directory... changing file on local pc not when script run on live server. bahhhhh
case closed.
i'm developing component i'm displaying button (link) in backend.
in url need add custom variable depend on parameter set in component.
when started develop component saved whole variable name , variable in parameter this: "token=123"
in view.html.php on admin part first used code add part url:
the above working should... , variable showing should in url. url button this:
now wanted save variable part
in component parameter (in backend): "123"
then code this:
but... part "token=" removed url button in backend, , url this:
what left of parameter part in url output button only: "&123"
and should have been: "&token=123"
if tell going on here, , how make work, appreciate it!
forget this:
looks there files present on server, not in develop directory... changing file on local pc not when script run on live server. bahhhhh
case closed.
i'm developing component i'm displaying button (link) in backend.
in url need add custom variable depend on parameter set in component.
when started develop component saved whole variable name , variable in parameter this: "token=123"
in view.html.php on admin part first used code add part url:
code: select all
$url_trigger = $params->get('url_trigger');
$url = '../index.php?option=com_my_component&format=raw';
$url .= '&' . $url_trigger;
$bar = & jtoolbar::getinstance('toolbar');
$bar->appendbutton( 'dmexternal', 'html', 'check something', $url);
the above working should... , variable showing should in url. url button this:
code: select all
"../index.php?option=com_my_component&format=raw&token=123"
now wanted save variable part
in component parameter (in backend): "123"
then code this:
code: select all
$url_trigger = $params->get('url_trigger');
$url = '../index.php?option=com_my_component&format=raw';
$url .= '&token=' . $url_trigger;
$bar = & jtoolbar::getinstance('toolbar');
$bar->appendbutton( 'dmexternal', 'html', 'check something', $url);
but... part "token=" removed url button in backend, , url this:
code: select all
"../index.php?option=com_my_component&format=raw&123"
what left of parameter part in url output button only: "&123"
and should have been: "&token=123"
if tell going on here, , how make work, appreciate it!
Comments
Post a Comment