Selection Datatype change value

Author Message

Nayef Abu Ebaid

Thursday 07 December 2006 1:50:46 am

Hi all,

I need to add a drop down menu to my Article class, so I used the selection datatype but the problem is that I want to assign a value to the selection, i need my custom values not the default one. how can i do that?

help please thanks a lot

Nayef

Nabil Alimi

Thursday 07 December 2006 12:02:46 pm

Hi Nayef,

You need to add an override on the datatype in this particular case.

You'll have to override <b>content/datatype/ezselection.tpl</b>. Take a look here for further informations : http://ez.no/doc/ez_publish/technical_manual/3_6/reference/template_override_conditions

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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

Main resources:

Total runtime0.7566 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.0084 589.3359152.6250
Module start 'layout' 0.00840.0043 741.960939.4453
Module start 'content' 0.01260.7425 781.4063526.5078
Module end 'content' 0.75520.0013 1,307.91418.1641
Script end 0.7565  1,316.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4561160.0002
Check MTime0.00160.2074160.0001
Mysql Total
Database connection0.00080.101910.0008
Mysqli_queries0.705793.2782540.0131
Looping result0.00060.0857520.0000
Template Total0.715894.620.3579
Template load0.00220.290620.0011
Template processing0.713694.317520.3568
Template load and register function0.00010.012710.0001
states
state_id_array0.00150.203010.0015
state_identifier_array0.00090.124920.0005
Override
Cache load0.00180.2352130.0001
Sytem overhead
Fetch class attribute can translate value0.00140.179620.0007
Fetch class attribute name0.00230.305940.0006
XML
Image XML parsing0.00120.155620.0006
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00180.2376220.0001
String conversion0.00000.000940.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/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs