From what I understand so far, in NodeJS there is no app.load or app.ready dynamic event for CONTENT pages... (I mean the UI options are there but they just don't do anything)
So, the only way to run a piece of code (for example Clear Session Storage Variables) is to add a page flow in my content page, set it to auto run and include in the page flow the code I need to run on page load.
(Probably there are other more complicated ways of doing it but for what I need to do this workaround does the job)
Thanks buddy but I'm sorry I tried to understand how to handle my content's page from withing the layout page with the dmx-on:load suggestion you dropped...
If you please enlight me
inside the above example of yours, I should check which content page is loaded and then run the appropriate pageflow (the correct session variables)
Or I could check for that inside the pageflow...
I mean this layout page controls a few content pages... How should I know which one is open?
New to NodeJS and I'm driving slower than the speed limit...