Forums / Setup & design / Advanced redirection after login

Advanced redirection after login

Author Message

Lydie Soler

Wednesday 10 August 2005 9:03:41 am

Hi I have seen this article for ez 3.8

3.8 features

We have been working on some small new features for eZ publish 3.8.
Advanced redirection after login

You can now configure where to redirect a user when he/she logs in. This is done through an attribute in either the user or the group object. What attribute to use is controlled through an ini setting

[UserSettings]
LoginRedirectionURIAttribute[class_identifier]=attribute_identifier

THis is exactly what I would like to do.... Is it possible to do something like this with ez 3.6?

Where is the parameter telling the redirection page (by default the root folder)

Lydie Soler

Thursday 11 August 2005 7:15:53 am

to be more precise here is my problem in detail.
In a template I call the template displaying the login page.
Once a user logs in it is redirected to what seems to be the node 2 (regarding what is displayed) but the url is : http://metarisk2/metarisk2/index.php/site_unite_metarisk/content/view/full/bg.jpg

and I would like to change that... THe login page is displayed trying to access a specific folder. I though that once logged the user would be redirected to the folder's page....

I have this in my error.log...

[ Aug 11 2005 16:10:09 ] [10.75.2.21] Timing Point: Script start
[ Aug 11 2005 16:10:09 ] [10.75.2.21] Undefined module: bg.jpg
[ Aug 11 2005 16:10:09 ] [10.75.2.21] Error ocurred using URI: /metarisk2/index.php/bg.jpg
[ Aug 11 2005 16:38:46 ] [10.75.2.21] Timing Point: Module start 'user'
[ Aug 11 2005 16:38:46 ] [10.75.2.21] Error ocurred using URI: /metarisk2/index.php/site_unite_metarisk/user/bg.jpg
[ Aug 11 2005 16:38:56 ] [10.75.2.21] Timing Point: Script start
[ Aug 11 2005 16:38:56 ] [10.75.2.21] Undefined module: bg.jpg
[ Aug 11 2005 16:38:56 ] [10.75.2.21] Error ocurred using URI: /metarisk2/index.php/site_unite_metarisk/bg.jpg
[ Aug 11 2005 16:39:01 ] [10.75.2.21] Timing Point: Module start 'user'
[ Aug 11 2005 16:39:01 ] [10.75.2.21] Error ocurred using URI: /metarisk2/index.php/site_unite_metarisk/user/bg.jpg
[ Aug 11 2005 16:39:01 ] [10.75.2.21] Timing Point: Module start 'content'
[ Aug 11 2005 16:39:01 ] [10.75.2.21] Unknown template variable 'site_access' in namespace ''

I think I am missing something... Thanks for your help

Lydie Soler

Friday 12 August 2005 3:02:20 am

well after 3 days searching here is the solution:

you have to check different things:

- in the menu setup/global settings
change Index Page and Default Page replacing the default 2 node by your node number

- also check the same elements in your different site.ini.append.php

and then it should work!

Hope this will help someone ;)

Lydie Soler

Friday 12 August 2005 9:48:42 am

hm.... weird, it doesn't work any more....
Maybe another cache pb...

So here is the final solution...

in the login.tpl(or your corresponding override)
I replace

<input type="hidden" name="RedirectURI" value="{$User:redirect_uri|wash}" />

by

<input type="hidden" name="RedirectURI" value="content/view/full/163" />

I know it's very bad..... if anyone has a better solution, thanks very much for telling me

David Eriksson

Monday 15 August 2005 12:29:21 am

Be sure that IndexPage and DefaultPage are still correct set. If you change and save the "global settings" from the admin interface, eZ writes a lot of things to the settings/override/site.ini.append.php, among other things IndexPage, DefaultPage, DebugIPs, etc. Since we have our index and defaultpages set differently for each siteaccess, saving global settings causes them to be set as empty in override, disrupting all websites.

/David

eZ debug

Timing: Jan 19 2025 03:42:24
Script start
Timing: Jan 19 2025 03:42:24
Module start 'content'
Timing: Jan 19 2025 03:42:24
Module end 'content'
Timing: Jan 19 2025 03:42:25
Script end

Main resources:

Total runtime0.2100 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.9766180.8281
Module start 'content' 0.00800.0058 769.804797.8984
Module end 'content' 0.01380.1960 867.7031526.8281
Script end 0.2098  1,394.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.7619200.0002
Check MTime0.00140.6798200.0001
Mysql Total
Database connection0.00090.415610.0009
Mysqli_queries0.152372.52531410.0011
Looping result0.00241.16171390.0000
Template Total0.195693.110.1956
Template load0.00090.424210.0009
Template processing0.194792.714310.1947
Override
Cache load0.00060.281310.0006
Sytem overhead
Fetch class attribute can translate value0.00110.543310.0011
XML
Image XML parsing0.00040.169010.0004
General
dbfile0.00321.5438200.0002
String conversion0.00000.007230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs