ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

login landing page

July 06, 2012 2:50pm

Subscribe [2]
  • #1 / Jul 06, 2012 2:50pm

    pmerritt

    24 posts

    I must be losing it. I had a page set up as the landing page for member login, but now I need to change it and can’t remember how I did it. I’m using the default member login template, but there’s nothing in the template to indicate where the page goes. Does it have something to do with {form_declaration}? How do I reset it?

  • #2 / Jul 06, 2012 3:04pm

    Shane Eckert

    7174 posts

    Hey pmerritt,

    Thank you for posting your question here on the ExpressionEngine forums.

    Are you talking about the “Profile Triggering Word”? That is located in Control Panel under Member Preferences.

    Does that help?

    Cheers,

  • #3 / Jul 06, 2012 4:10pm

    pmerritt

    24 posts

    Thanks, I’m not sure if the trigger word is the issue. I don’t want the user to be redirected to their profile page, but rather an instructional page for the site. I’m using the “Login Form” template from the default member profile templates. It opens with: 

    {form_declaration}
    <h2>{lang:login_required}</h2>

    and closes with:

    <td class="tableCellOne" align="right"><input type="submit" class="submit" value="{lang:submit}" /></td>
    <td class="tableCellOne">
    <input type="checkbox" class="checkbox" name="auto_login" value="1" checked="checked" /> {lang:auto_login}
    
    <input type="checkbox" class="checkbox" name="anon" value="1" checked="checked" /> {lang:show_name}
    </td>
    </tr><tr>
    <td colspan="2"><div class="table_bottom"></div></td>
    </tr>
    </table>
    </form>

    Nowhere do I see any indication of where it redirects when submitted. Although I did set it up before to go to the page I wanted. I just can’t remember how I did it. Where am I supposed to put the path to the redirect page?

    Thanks.

     

  • #4 / Jul 06, 2012 4:14pm

    Shane Eckert

    7174 posts

    Hey pmerritt,

    Gotcha!

    The login form should have a return parameter.

    {exp:member:login_form return="site/index"}

    Does your template have that?

    Cheers,

  • #5 / Jul 06, 2012 4:31pm

    pmerritt

    24 posts

    The template did not have that return parameter. Perhaps this template is referenced within some other template that does have that parameter? I tried adding it to the login form template but then the login page just came up blank.

  • #6 / Jul 10, 2012 11:19am

    Shane Eckert

    7174 posts

    Hey pmerritt,

    That could be the case. Have you looked through all the templates to find this? Once you find that member login form, can you post that code in here?

    Thank you,

  • #7 / Jul 26, 2012 6:13pm

    pmerritt

    24 posts

    Sorry for the delay…I’ve been moving cross-country. I could not find any instance of

    exp:member:login_form return=“site/index”.

    in any of my templates, but I may still be overlooking it.
    Viewing the page source I see it says:

    <div id="content">
    <form id="member_login_form" method="post" action="http://mycompany.com/dev/index.php"  >
    <div class='hiddenFields'>
    <input type="hidden" name="XID" value="2ff2dc66c611c3a3450a525c604f953b498de3e8" />
    <input type="hidden" name="ACT" value="10" />
    <input type="hidden" name="RET" value="-2" />
    <input type="hidden" name="FROM" value="" />
    <input type="hidden" name="site_id" value="1" />
    </div>

    Judging by the action variable it looks to me like the form should be landing on the home (index) page. However the landing page is not the index page but rather “http://mycompany.com/dev/index.php/my-project”. So I’m back to the same issue of where in the template is is saying to go to the my-project page and how can I change that.

     

  • #8 / Jul 27, 2012 6:04pm

    Kevin Smith

    4784 posts

    Could you search instead for this in your templates?

    login_form

    That should be simpler and return more definitive results.

  • #9 / Aug 01, 2012 5:49pm

    pmerritt

    24 posts

    I’m not sure where to look for “login_form”. I think I had a grasp on this at one point, but I’m confused now on how to track down the templates the pages are using. I guess there’s no way to produce a list of the names of the templates that are generating a web page?

    I’m trying to work backwards on the path leading to the ‘Default/Login Form’ (I know where that is)and find out in which one of the outer containing templates the landing page is set. The sign in link on the home page goes to ‘member/login’. So I guess that’s a uri rather than a ‘template group/template’ location? So what template is the uri pointing to? I’m assuming it’s one of the default member templates?


    Thanks,
    Phillip

  • #10 / Aug 02, 2012 11:23am

    Shane Eckert

    7174 posts

    Hi pmerritt,

    That login_form call will be in one of your templates. As far as I know there is not way to list the names of the templates that are generating a web page.

    Right, so working backwards is an okay way to do this but that is a URI. Nothing is coming up when you search through your templates? This is rather frustrating.

    A systematic search is about the only thing I can suggest at this point. Once you find the login_form, we can get this sorted.

    Thank you,

  • #11 / Oct 10, 2012 6:06pm

    pmerritt

    24 posts

    So this issue has been on the back burner for a while, but I’m back trying to get the problem fixed. After reviewing the messages above, I still haven’t found a solution. So here’s what I’m thinking:

    1. Visitors get to the login page by clicking the “sign in” link which has the path: path=‘member/login/. I have not directly embedded the login form in any of the templates I’ve created by using

    {exp:member:login_form return=“site/landing_page”}

    .

    2. Visitors are directed to the “Login Form” template in the member profile templates. I do not see anywhere in this template where the landing page is set unless it is somehow connected to “{form_declaration}” at the top of the page(somehow I changed the landing page several months ago because it is linking to an entry I created and not the home page).

    3. If the landing page is not set in the “Login Form” template it must be set in another member profile template that links to the “Login Form”, or maybe there is a variable somewhere that sets the landing page. If all this is determined using member profile templates, someone must know how these member profile template paths are set up and how the “Login Form” knows where to direct to.

    4. You’ve suggested searching the templates I’ve created for “login_form”. Is there any easy way that I can do a search for that term in all my templates at once, or do I have to open them one by one?

    Sorry if this is just rehashing what I’ve already posted. Any new thoughts on how to solve this?

    Thanks,
    Phillip

  • #12 / Oct 12, 2012 4:49pm

    Shane Eckert

    7174 posts

    Hey pmerritt,

    Please be on the lookout for an email from EllisLab.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases