You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to add "tabs" for different lists on the same admin. This works ok but I needed to copy some templates just to get it to work. Awesome would be if the links would actually use the action property if they refer to the same page.
Workaround
the files contain hardcoded 'list' references, I changed them to action:
// fancyListAction uses the given action for the listpublicfunctionlistRequestAction()
{
return$this->fancyListAction('listRequest');
}
publicfunctionlistOrderAction()
{
return$this->fancyListAction('listOrder');
}
(I removed the additional filtering for results)
The text was updated successfully, but these errors were encountered:
sounds interesting to have an option to overwrite the default list route and add some tabs for different lists with (different filters and/or queries) ?
Subject
I wanted to add "tabs" for different lists on the same admin. This works ok but I needed to copy some templates just to get it to work. Awesome would be if the links would actually use the action property if they refer to the same page.
Workaround
the files contain hardcoded 'list' references, I changed them to action:
How did I add the lists?
The admin class got 2 separate routes:
and the controller 2 separate methods:
(I removed the additional filtering for results)
The text was updated successfully, but these errors were encountered: