Hi!

Author Message

nicolem cgrgr

Saturday 07 February 2009 4:01:20 pm

Hi!

I trying to create a new object class for one object on the frontage of the site I'm working on. I need to create a object class almost like "Itemize subtree items" but I can't seem to find out there to create this class.

Is this a task that can be solved through the administration interface?

Thanks in advance! :-)

[url=http://www.andysautosport.com/body_kits.html]Body Kits[/url]
[url=http://www.bestcarfinder.co.uk/make/Audi-car-leasing.aspx]Audi Leasing[/url]

Fátima Chapri

Sunday 15 February 2009 10:00:28 am

hi,

As I could understand, the Itemized_subtree_items is a class of the ezxmltags.
If you want to add xmltags, you must edit the configuration file:
settings/override/content.ini.php

Let's say that you want to add a xmltag with the class: my_class

Than, you have to add the lines:

[object]
AvailableClasses[]=my_class
ClassDescription[itemized_sub_items]=My Class

[embed]
AvailableClasses[]=my_class
ClassDescription[itemized_sub_items]=My Class

After that, you must edit the override settings at the file:
settings/your_site_language/override.ini.php

I'll give an example of how to create an override rule for your new When editing the override.ini.
[my_class]
Source=content/view/embed.tpl
MatchFile=embed/my_class.tpl
Subdir=templates
Match[classification]=my_class

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 31 2025 04:30:26
Script start
Timing: Jan 31 2025 04:30:26
Module start 'layout'
Timing: Jan 31 2025 04:30:26
Module start 'content'
Timing: Jan 31 2025 04:30:26
Module end 'content'
Timing: Jan 31 2025 04:30:26
Script end

Main resources:

Total runtime0.0147 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9844151.1797
Module start 'layout' 0.00500.0025 739.164136.5781
Module start 'content' 0.00750.0055 775.742289.9844
Module end 'content' 0.01300.0017 865.726629.9922
Script end 0.0147  895.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.0127140.0002
Check MTime0.00107.0477140.0001
Mysql Total
Database connection0.00085.693510.0008
Mysqli_queries0.002517.244030.0008
Looping result0.00000.068010.0000
Template Total0.00127.910.0012
Template load0.00096.256610.0009
Template processing0.00021.622810.0002
Override
Cache load0.00064.234110.0006
General
dbfile0.00117.641580.0001
String conversion0.00000.032440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs