How To :Datatype for allow registration to newsletter during user registration ???

Author Message

Stefano Gattuso

Sunday 07 August 2011 5:26:53 am

Hello i am modifing the nvnewsletter extension..what i want like result is to have subscription to newsletter and user registration togheter in same form..

For make that i am creating a datatype which will be added on user class and using the validateObjectAttributeHTTPInput method for insert the user on the newsletters ystem.

Now here is the problem : how to acces to information abuot email adress (which user used on another Datatype on that form)?

 

now i am using :  $email = $http->postVariable('ContentObjectAttribute_data_user_email_2558');

 

but i dont like it!

PS : Sorry for my bad eng.

[ ] http://www.buby.it

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 00:02:54
Script start
Timing: Jan 18 2025 00:02:54
Module start 'layout'
Timing: Jan 18 2025 00:02:54
Module start 'content'
Timing: Jan 18 2025 00:02:55
Module end 'content'
Timing: Jan 18 2025 00:02:55
Script end

Main resources:

Total runtime0.6899 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.5313152.6875
Module start 'layout' 0.00660.0033 742.218839.6250
Module start 'content' 0.00990.6787 781.8438465.9219
Module end 'content' 0.68860.0013 1,247.76568.0313
Script end 0.6899  1,255.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4912160.0002
Check MTime0.00140.1995160.0001
Mysql Total
Database connection0.00070.106810.0007
Mysqli_queries0.645393.5331460.0140
Looping result0.00050.0697440.0000
Template Total0.652094.520.3260
Template load0.00210.308720.0011
Template processing0.649894.190320.3249
Template load and register function0.00010.013610.0001
states
state_id_array0.00130.186410.0013
state_identifier_array0.00190.275820.0010
Override
Cache load0.00170.2497120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.125110.0009
Fetch class attribute name0.00080.114320.0004
XML
Image XML parsing0.00140.210010.0014
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00170.2482160.0001
String conversion0.00000.001440.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs