Nodebb 1.7.0 on GCP (Ubuntu 16.04)
I am not able to configure "Welcome" page for guest/unregistered users.
I have created a "welcome" page using "nodebb-plugin-custom-pages" plugin.
I want to route guests/unregistered users to welcome page and already registered/logged in users to categories page.
I have referred to this 2014 post in this forum and tried to implement suggestions but it didn't work.
I have tried including below in "categories.tpl" under header section in Extend->Widgets
<!-- IF !loggedIn -->
<!-- IMPORT welcome.tpl -->
<!-- ELSE -->
<!-- IMPORT categories.tpl -->
<!-- ENDIF !loggedIn -->
All users, whether logged in or not, are routed to "categories" page or "welcome" page, whichever is configured as "home page" in General -> Home Page.
I see some issue with the IMPORT statement as page is not displayed.
I have also tried including above code in "welcome.tpl" header section as well.
Any suggestions on how this could be achieved?
Hope, I was able to convey my problem clearly
.