SOLVED Login landing page-restricting access to entire site
Posted 14 years 1 month ago
Hello fellow members!
I am using the Quasar template to create a private site for my current employers. What I need to achieve is a closed website with access via LDAP authentication plugin. I need the landing page to be just a login prompt with redirection to the site but i'm unsure how to achieve this?
Can I use template layout overrides, multiple templates, a hand coded index.php with some funky way to pass credentials to joomla? I'm not much of a coder so can't figure this out! I have tried to use Gantry and remove everything from the 'home' or default menu item apart from a login module but the issue i have with that is it shows on the menu navigation after login and would like the 'home' button to take users back to the page after login not the login module page itself.
I have posted an image of the 'home' default menu item page ie. login page.
I appolgise if I'm not explaining myself clearly :shock:
Re: SOLVED Login landing page-restricting access to entire site
Posted 14 years 1 month ago
Hi Mark,
This is really a question or questions that should be asked/directed towards the Joomla Forums. Not to be an arse, but I don't see how this has anything to do with RT or Gantry from what you've written.
But, I can at least get you started as it looks like your not understanding some basics.
Access to view a given pages content (article) is controlled at the Menu Item level in Joomla, via it's "Access Control" value. By default this value will usually be "Public". You want to make this value "Registered" instead.
Login to the Joomla Backend and goto>Menus>WhatEverMenuYourUsing.. for me it's MainMenu.
For EVERY menu item listed within MainMenu, set "Access Control" to registered.
That should get you started Mark. Test this out really quick to see what it does for you.
As far as redirecting everyone not authenticated to a spash login page that's trying to access your domain at the root level or content within, is fairly trivial via cookie checking and php. Not specifically sure what you had in mind, but I'm sure a quick search in google or a posting on the Joomla forums will get help fairly quick.
Here's an example I found. It doesn't specifically give the answer but gives you some nuts and bolts that you know you're going to need as well as what else to specifically search for. It's all about those magic search terms.
Re: SOLVED Login landing page-restricting access to entire site
Posted 14 years 1 month ago
Mark Fisher wrote:
Yeah I knew it wasn't very relevant but thought I would try you guys first as everyone seems very helpful here
Thanks for the info PJ!
No problem Mark, I wish you quick success.
Since you marked this as solved, please come back and share what you specifically did to solve your issue if you could. Plus these forums get indexed by google on a regular basis. So anyone searching on google could possibly find a solution to the same problem.