Permissions Wall

Permalink
I have made the special adjustments/instructions to the login page mysite.com/login.
But, when you have a locked down page that is only viewable to "members". And, if a member that is not logged in and tries to access this page they are not redirected to the login page listed above. They are redirected to another login page. Where specifically is this page located and can i edit the page?

tracyb
 
jasteele12 replied on at Permalink Reply
jasteele12
What special adjustments / instructions are you referring to?

What page are they being redirected to? yoursite.com/index.php/login ?

What version of concrete5 are you using?

The lack of any specifics are probably why you haven't received any responses. You aren't giving anyone enough information to give decent advice. Always include links and possibly screenshots where appropriate, if you expect someone to help.
tracyb replied on at Permalink Reply 3 Attachments
tracyb
Here is the primary login page. (img1.png) I actually put the login page in the single_pages folder. Which took care of the customization.http://dmawest.org/index.php/login...

But, if you click on a locked down page url below. (img2.png; img3.png)
you are redirected to a different login page.
http://dmawest.org/resources/resource-library/annual-reports/...
I found that the locked down page is driven by the theme. packages > alpha > themes > alpha > login.php. I had to modify this login page within the theme (path above). I tried to move to the root but that did not seem to work. Maybe i did not move it to the correct location with the root folder.
jasteele12 replied on at Permalink Reply
jasteele12
You can control the path to several pages by using the config/site_theme_paths.php file. The end of this snippet uses the active theme, but you can use any theme you want (see the first commented out example):

<?php /* config/site_theme_paths.php */
defined('C5_EXECUTE') or die('Access Denied.');
/*
 * uses elements/system_errors.php
 * in themes/yourtheme/view.php paste this before print innerContent:
 *
 *    Loader::element('system_errors', array('error' => $error));
 */
/*
$v = View::getInstance();
$v->setThemeByPath('/login', 'a_theme');
$v->setThemeByPath('/register', 'another_theme');
$v->setThemeByPath('/page_not_found', 'a_theme');
$v->setThemeByPath('/page_forbidden', 'another_theme');
$v->setThemeByPath('/download_file', 'another_theme');

Hope that helps,

John