Your don't need the header in your template. You need to add it like this:router.get('/calendar', middleware.buildHeader, renderPageHandler); router.get('/api/calendar', renderPageHandler);
I have a link in my custom plugin which when clicked checks whether the user is logged in or not. If yes, the system displays the appropriate HTML content.
If not, it displays the message: "You don't seem to be logged in"
When the user logs in, he is taken to the Register/Login screen after successful login, the system displays the HTML content.
How can I implement this? Could anybody pl. write the code outline for this?