custom content class

Author Message

justin kazadi

Tuesday 16 September 2008 9:13:54 am

hello all,
i have created an custom content class named "shop" .i want to store the information on the sex (M or F) and password but i don't see the datatype who will help me to do this. i want a datatype for radio button and password .

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Maxime Thomas

Tuesday 16 September 2008 3:42:43 pm

Hi Justin,
You can put a selection attribute in your content class to put the male or female choice. As far as I can remember you only can have a dropdown box for this one else if you override some templates...
For the password, I'm not sure that it is recommanded to store password in content. You may do that by creating a new datatype.
Look at ezpedia.org for more information.
Hope it helps !

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

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

Main resources:

Total runtime0.8551 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.8125152.6094
Module start 'layout' 0.00690.0032 740.421939.4141
Module start 'content' 0.01010.8437 779.8359533.1016
Module end 'content' 0.85380.0013 1,312.93758.1875
Script end 0.8551  1,321.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4011160.0002
Check MTime0.00140.1586160.0001
Mysql Total
Database connection0.00060.068210.0006
Mysqli_queries0.798693.3831540.0148
Looping result0.00050.0577520.0000
Template Total0.813995.220.4070
Template load0.00210.243220.0010
Template processing0.811894.934420.4059
Template load and register function0.00020.019810.0002
states
state_id_array0.00130.147110.0013
state_identifier_array0.00150.175220.0007
Override
Cache load0.00180.2066130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.069320.0003
Fetch class attribute name0.00110.123740.0003
XML
Image XML parsing0.01071.249720.0053
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00961.1214220.0004
String conversion0.00000.001140.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs