Is there a method to detect whether a button is clicked in the sidebar, in the pagemenu or in the storyriver?

… without building three different eventcatchers from scratch?

If the button is clicked in the story river, the storyTiddler variable will be defined.

1 Like

Hello @saqimtiaz , this is a good hack! thanks.
Do you think it would be a good idea to start a pull-request to introduce a variable to the list that filters the pagecontrol buttons? Then this would be possible there as well.

@janjo can you please explain what it is that you want to accomplish? I need to understand the context.

pagecontrol? pagemenu? Can you be more specific?

Hi, sorry I meant the buttons tagged $:/tags/PageControls.
The behaviour shall be different than the behaviour when it is clicked in my navbar.
In my (mobile) navbar it triggers a drop-down, in the PageControls the same content is shown in a modal.

(Of course I can solve this by setting a variable in my Navbar…Thanks for the idea)