Restrict access to Single Pages
Permalink
Newbie here. I am designing a site that will require several single-pages as I will be implementing database searches to external datasources, etc.
One thing that I am trying to determine is. How do I go about making certain functions of the single page accessible only to logged in users?
Example.
I would like the public to have access to search, in this case clasified ad's. However in order to respond, a login must be required.
If that is to granular at first. I might just like to block access to the single-pages unless they are registered users.
One thing that I am trying to determine is. How do I go about making certain functions of the single page accessible only to logged in users?
Example.
I would like the public to have access to search, in this case clasified ad's. However in order to respond, a login must be required.
If that is to granular at first. I might just like to block access to the single-pages unless they are registered users.
In your view code you can do
In your controller code you do a similar