I'm using this piece of code
Code: Select all
{cms_module module=FrontEndUsers form="login" returnto="forum" nocaptcha="1"}
After adding a seperate page/section that also requires login called Articles, I would like to be able to forward the user to the relevant page depending on where they have logged in.
ie. If user logs in on forum page, they get forwarded to the forum.
If they login on the article page, they will get forwarded to the articles page.
I understand i can assign different returnto's depending on user groups, but I only have/want one user group.
I'm guessing it would be something like:
Code: Select all
{if page='articles'}
{cms_module module=FrontEndUsers form="login" returnto="articles" nocaptcha="1"}
{else}
{cms_module module=FrontEndUsers form="login" returnto="forum" nocaptcha="1"}
Note: Guess I could forward to page where articles, forum etc are listed as links? hmmmm