1. This is my current login page:
Code: Select all
{if feu_smarty::get_current_userid()}{redirect_page page='parent-home'}{/if}
<h1>Please log in to access more information.</h1>
{FrontEndUsers action="login" returnto='parent-home'}
In the .tpl file, some variables are mentioned. How and where do I set, for example, the $requested_url variable? That seems like it would be the solution to my post-login redirect problem.
2. In the FEU documentation, it mentions {redirect to=$url} a couple of times. I look in the Tags section of CMSMS, and I see redirect_url and redirect_page, but no plain redirect. What am I missing? Is a plugin the same as a tag?
3. How and where do I adjust the $msg_post_logout that is used in the orig_logout.tpl?
4. The logout page was another bugger for me. One thing I did was in the Logic for the page, I put this:
Code: Select all
{cms_module_hint module=FrontEndUsers logouttemplate="my_logoutform.tpl"}
As to design, it seems strange to require a special case page type for a logout link.
Given this, on my login page, is it cool to call {cms_module_hint} several times, to tell FEU about all its templates, even ones not relevant to the login operation?
Code: Select all
{cms_module_hint module=FrontEndUsers logintemplate="my_loginform.tpl"}
{cms_module_hint module=FrontEndUsers logouttemplate="my_logoutform.tpl"}
{cms_module_hint module=FrontEndUsers postlogouttemplate="my_post_logout.tpl"}
The docs say:
Code: Select all
The FEU module no longer redirects after a logout by default, as it does not know where to redirect to.
To solve this you should customize the appropriate "post_logout" template, and put your redirection in there. i.e.:
{cms_selflink href='welcome' assign='url'}{redirect to=$url}
6. The {cms_module_hint} doesn't seem well named in this case. Formerly, I had parameters that were sent to the FEU module when I called it for login or logout. It seems like a good place to have them, at the call site. OK, I can live with moving them out of the call line. But "hint" is not the right semantics. It is not a hint. It is a command. It is a requirement. It is an argument that is passed into the routine as a parameter. It is necessary information to the proper functioning of that thing.
Thanks for reading, and any help that you can provide.