Forums / Setup & design / Class creation through ezwebin

Class creation through ezwebin

Author Message

Pascal Specht

Friday 19 October 2007 7:10:20 am

Hello,

Can someone shed some light on this? I don't get the picture yet:

In the ezwebin interface, I can create new classes. (Administration->Classes->Create new class)

Let's say I would create a new class called TimeSpan: I would add two Date members to it, through the dropdown box at the bottom.
(the one that lets you choose Article, Folder,... etc)

But once I'm finished with this and save my work, I don't know how to walk further:

I don't know what to do so that this new class would also be selectable in that dropdown box I'm speaking about, so that I could use my class as attributes in other classes... Example would be to add a new member of type TimeStamp to the Product class... But TimeStamp does not show up in the drop-down selection.

I don't understand where to declare and put a template tpl file for this class. I tried to use the override.ini file, but that didn't work. I posted a question about this previously and didn't get much answers so far.

Is it possible to do this kind of things through the admin interface, or do I need to program an extension ??

Thanks in advance,

</Pascal>

Pascal Specht

Monday 22 October 2007 5:49:27 am

nobody has an idea?...

André R.

Monday 22 October 2007 7:20:22 am

You seem to mix datatypes (the different attributes on classes) and classes.

Start here and also look at the 'The content class' and 'Class attributes' pages:
http://ez.no/doc/ez_publish/technical_manual/3_10/concepts_and_basics/content_management/datatypes

For a tutorial on how to create new classes, templates and overrides:
http://ez.no/ezpublish/documentation/building_an_ez_publish_site
Especially the 'the guestbook' section!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal Specht

Wednesday 24 October 2007 3:01:19 am

Thanks André,

Well I thought that the classes built through the Admin interface would be able to act as Datatypes themselves, which obviously is not the case...

As for the second question, I'm going to look at the tutorial you pointed at : I must have missed something with the template creation...

</Pascal>

eZ debug

Timing: Jan 18 2025 15:50:32
Script start
Timing: Jan 18 2025 15:50:32
Module start 'content'
Timing: Jan 18 2025 15:50:33
Module end 'content'
Timing: Jan 18 2025 15:50:33
Script end

Main resources:

Total runtime1.4301 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.7266180.8359
Module start 'content' 0.00701.2419 768.5625564.0078
Module end 'content' 1.24880.1812 1,332.5703336.7813
Script end 1.4300  1,669.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2747210.0002
Check MTime0.00160.1088210.0001
Mysql Total
Database connection0.00150.104510.0015
Mysqli_queries1.355394.77351970.0069
Looping result0.00220.15231950.0000
Template Total1.402398.120.7012
Template load0.00200.139020.0010
Template processing1.400397.919320.7002
Template load and register function0.00010.006510.0001
states
state_id_array0.00120.083710.0012
state_identifier_array0.00090.063920.0005
Override
Cache load0.00180.1239320.0001
Sytem overhead
Fetch class attribute can translate value0.00140.098230.0005
Fetch class attribute name0.00120.082760.0002
XML
Image XML parsing0.00130.090830.0004
class_abstraction
Instantiating content class attribute0.00000.001280.0000
General
dbfile0.00300.2086340.0001
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs