We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Creating a new public page | Forum

Topic location: Forum home » Support » General Questions
Christian Mayne
Christian Mayne May 3 '17
My Oxwall site is intended to be a closed members site but I want to have some public facing pages.  Essentially the site is for musicians who colloborate in a number of bands - I want basic band information to be public but the social aspect to be for registered members only


I have created a plugin that adds bands to the site, and created a bands index page (I won't post the controller details here but it works fine for registered users.  here's the route:


OW::getRouter()->addRoute(new OW_Route('wtdbands-index', 'bands', 'WTDBANDS_CTRL_Bands', 'index'));


I have added /bands into the main menu and the menu item visible to Guests and registered users.  When logged in I can click through to the bands index page fine.  When not logged in, I get a login screen. 


There are certain pages that seems to be public by default - privacy policy for example.  My question is how can I make this page public?


Thanks for any help with this

Christian Mayne
Christian Mayne May 3 '17
I've worked this out.  


In my classes/action-controller.php init method I have the following:


        if (!OW::getUser()->isAuthenticated())        {            $this->redirect(OW::getRouter()->urlForRoute('static_sign_in'));        }      


This forces unauthenticated users to the sign in.  Removed this and I now have a public page.  Hope that helps someone else.