Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 02-18-2011 13:40:58

lucas.shoesmith
Member
Registered: 07-20-2010
Posts: 32

Is there a way to change the default first page after login?

When a person logs in, i'd love for them to be directed toward the content page for the catalog display.

Is there a way to implement this?  Is the page redirect after login able to be changed?

Offline

 

#2 02-18-2011 15:17:43

KryptoJim
Member
Registered: 07-08-2010
Posts: 455

Re: Is there a way to change the default first page after login?

lucas.shoesmith wrote:

When a person logs in, i'd love for them to be directed toward the content page for the catalog display.

Is there a way to implement this?  Is the page redirect after login able to be changed?

redirect url is set Line 305 of /private/core/CORE_FrontEnd/ext/accounts.php

Offline

 

#3 02-21-2011 12:41:12

lucas.shoesmith
Member
Registered: 07-20-2010
Posts: 32

Re: Is there a way to change the default first page after login?

That helps alot, but it's not quite there.  If I'm reading this right, i want the namespace catlist after login, however, that belongs to the app for  ecom.

The page that I want displayed, if I were referencing it by get variables, would look like
' index.php?app=ecom&ns=catlist '

I think that the login process is in the wrong app context for it to then reference the catlist namespace. 

Is there a way to change which app that the login redirect is looking in?

Offline

 

#4 02-21-2011 13:27:42

lucas.shoesmith
Member
Registered: 07-20-2010
Posts: 32

Re: Is there a way to change the default first page after login?

nevermind, got it figured.

For anyone else that ever reads this, the area in code for  305 of /private/core/CORE_FrontEnd/ext/accounts.php
looks as follows -

$redir_app = false;

if (!(empty($coactive))) {$destns = 'checkout';}
else                     {
$destns = 'catlist';
$redir_app = 'ecom';
}
if (!$redir_app) {$redir_app = $this->globals('core.app');}

$glob_redir_ns = $this->globals('core.redir_ns');
$cgi_redir_ns  = $this->globals('core_cgi.redir_ns');

$redir_ns = ($glob_redir_ns ? $glob_redir_ns : $cgi_redir_ns);

if ($redir_ns) {$destns = $redir_ns;}

return $this->exec_namespace(array('app'       => $redir_app,//$this->globals('core.app'),
                                   'namespace' => $destns,
                                   'type'      => '*',
                                   'params'    => null));

Offline

 

Board footer