This topic is locked
[SOLVED]

Discreet events for additional pages

8/13/2022 12:22:05 AM
PHPRunner General questions
G
gtothill author

I have an application where an external link takes a user to a page within the application. This is designed for guests to be able to access.
The 'Add' page is an additional Add page that is formatted in a rather particular way.
I need to check some URL parameters and so I went to find the added page in the Events panel and it does not individually exist on that panel.
Is it by design that events can only be set on the default page in each category? It would be vey handy if all the pages in a project appeared individually in the events pane and allowed specific events to be assigned.
Am I making a fundermental mistake here?
Thanks,
Geoff.

Sergey Kornilov admin 8/13/2022

The idea of additional page is just to add a different view of the same data. In the scenario you offer, the user would have to copy all events from the master Add page, for instance, to the additional page they created. Events will be shared between all additional pages and this behaviour is by design.

If your additional page is to have a whole bunch of unique events then the easiest option is to create a Custom View based on the same table and you can have a fully independent set of events there.

G
gtothill author 8/13/2022

Excellent, that makes sense.

I will create a Custom View and apply the event set there.

Cheers

Geoff.

mbintex 8/15/2022

With

$_GET['page']

you could fetch the page you are on in your events code and then do different things for different pages.