Hi Markus,
I do not fully understand what you want to do, but there are several
things you need to setup that an action appears in the menu:
- the action has to return a label on the class side:
MyAction class>>title
^'My Action Label'
- the action has to be register to the structure:
Page registerAction: MyAction
- the permissions of the action have to be set, as you did in your
example code
Then you should be able to add your action as admin trough the config
interface Admin > Components > Actions and it should automatically
appear.
Of course you can always test your action without doing anything
mentioned above by directly typing the action into the url:
.../page?action=MyAction
I hope this helped.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch