I am having a site which has a front end design in the root folder and a backend in another folder (this backend is different from couch folder).
This backend, i am referring to, is accessible after login only.
Let us consider the following folder structure:
Project (folder)
- assets (folder)
- backend (folder)
- couch (folder)
- index.php (site frontend)
Now the first issue i face is, there is an index.php in the backend folder. this file has the code:
When I logout it takes me to the login page. but if i try to access the url
I get the message "Page not found", while this page exists in the couch panel. By my understanding it should actually be redirected to the login page, but does not.
The second issue is that, when a user logs in, there are two conditions to be checked, viz:
1. If the user profile is filled completely it should login and redirect to the backend/index.php page
2. If the user profile is NOT completely filled, it should login and redirect to the users/profile.php page for that user.
Where can I place these conditions in the users/login.php for them to work?
The third issue is that, when go to the logout link, in the navbar of the backend/index.php, on mouse over it shows me the logout link but when clicked once it doesnot logout, while if i click the second time it logs out. This i suppose should happen the first time itself
Looking forward to all help and expert opinions possible.
Regards,
GXCPL (CTR Support)
This backend, i am referring to, is accessible after login only.
Let us consider the following folder structure:
Project (folder)
- assets (folder)
- backend (folder)
- couch (folder)
- index.php (site frontend)
Now the first issue i face is, there is an index.php in the backend folder. this file has the code:
- Code: Select all
<cms:if k_logged_out>
<cms:redirect "<cms:login_link />" />
</cms:if>
When I logout it takes me to the login page. but if i try to access the url
localhost/Project/backend/index.php
I get the message "Page not found", while this page exists in the couch panel. By my understanding it should actually be redirected to the login page, but does not.
The second issue is that, when a user logs in, there are two conditions to be checked, viz:
1. If the user profile is filled completely it should login and redirect to the backend/index.php page
2. If the user profile is NOT completely filled, it should login and redirect to the users/profile.php page for that user.
Where can I place these conditions in the users/login.php for them to work?
The third issue is that, when go to the logout link, in the navbar of the backend/index.php, on mouse over it shows me the logout link but when clicked once it doesnot logout, while if i click the second time it logs out. This i suppose should happen the first time itself
Looking forward to all help and expert opinions possible.
Regards,
GXCPL (CTR Support)