Redirect on login - Checkbox as infocollector

Author Message

Bjørn Kaarstein

Monday 04 August 2003 4:01:41 am

It would have been a nice option to be able to redirect each specific user to it's own specific node on login.

It'd also been rather nice to be able to use checkboxes/radiobuttons as information collectors, as this is very much used in contact forms.

Regards Bjørn.

Paul Forsyth

Monday 04 August 2003 3:02:13 pm

We have dynamic redirect on logon working fine, as specified in this doco:

http://ez.no/developer/ez_publish_3/documentation/customization/tips_tricks/redirecting_after_content_publishing

Radio buttons can be used as information collectors. Look at the source of this page in our site:

http://www.pobox.co.uk/po_box/contact_us

This page was built after advice from Jan, in this thread:

http://ez.no/developer/ez_publish_3/forum/developer/radio_buttons_within_forms

Paul

Bjørn Kaarstein

Monday 04 August 2003 11:59:43 pm

Hi Paul.

I'm not quite sure if this is what I mean by dynamic login. I have used this approach in 3.0, in order to redirect all logins to node 19.
What I miss is the opportunity to redirect <user1> to node 19, <user2> to node 25 etc. How about an option <redirectToNode> when creating the user in the admin interface?

Regarding radiobuttons within forms, I have studied the thread you're referring to earlier. I managed to create the buttons without problems, but I couldn't get any information sent from them.

Also here, my suggestion was to have the "information collector" possibility in the admin interface, like we have on a textline.

I'll take a look at your source when creating my next form.
Thanks a lot!

Regards Bjørn

Paul Forsyth

Tuesday 05 August 2003 12:25:52 am

You can make the redirect dynamic by creating more tpl logic that ties into whatever you have put into your class objects. A recent site i worked on had something similar where the user group contained a node that pointed to the area i wanted the system to take information from. By pulling this value out and feeding it to the redirect node it worked well.

Hope you can get the radio button stuff working. It does work here. The basic idea is that you get the id of the attribute and use that to create post variables for the form.

Paul

Paul Forsyth

Tuesday 05 August 2003 12:38:02 am

Just mulling over what you have said :)

You can use the method i use to make it dynamic for now, but putting forward the suggestion that something in the admin could set a default redirect value would be nice. This would save on coding each time it was needed.

Maybe a redirect datatype could be added? This would set a default redirect in a tpl and would be picked up by those forms that support it.

Paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:33:26
Script start
Timing: Jan 18 2025 10:33:26
Module start 'layout'
Timing: Jan 18 2025 10:33:26
Module start 'content'
Timing: Jan 18 2025 10:33:27
Module end 'content'
Timing: Jan 18 2025 10:33:27
Script end

Main resources:

Total runtime0.4627 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00540.0027 740.687539.4766
Module start 'content' 0.00810.4533 780.1641493.1094
Module end 'content' 0.46140.0013 1,273.273412.1250
Script end 0.4627  1,285.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.7224160.0002
Check MTime0.00140.3017160.0001
Mysql Total
Database connection0.00080.171810.0008
Mysqli_queries0.417090.1084630.0066
Looping result0.00050.1104610.0000
Template Total0.433493.720.2167
Template load0.00250.532520.0012
Template processing0.431093.132120.2155
Template load and register function0.00020.040410.0002
states
state_id_array0.00040.087310.0004
state_identifier_array0.00080.176320.0004
Override
Cache load0.00210.4519320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.099420.0002
Fetch class attribute name0.00110.245850.0002
XML
Image XML parsing0.00020.047820.0001
class_abstraction
Instantiating content class attribute0.00000.002350.0000
General
dbfile0.00050.1002100.0000
String conversion0.00000.002240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs