Forums / Setup & design / Custom tags in online-editor

Custom tags in online-editor

Author Message

Luc Chase

Monday 06 November 2006 4:33:42 am

I need to allow users to create a specially formated table of data. The table format will remain unchanged but the data in it will change from time to time. Where is there detail of how to include special tags and styles in the online editor?

The Web Application Service Provider

Mark Marsiglio

Monday 06 November 2006 4:53:32 am

I think you should use content classes for this, not custom tags. If you just need to use CSS to style a table, you can add an optional table class (or th, or tr or td) by adding it as an option in content.ini.append, then adding the css that handles the new style.

I have this option in my content.ini.append.php

[table]
AvailableClasses[]=merchantnetwork

When I create a table in the online editor, it gives me the option of assigning it this custom class, which if selected, will render the table with that class assigned.

Then I use custom CSS to specify a different design for any table with this class.

You can do this for any tag, and multiple class options per tag.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Mark Marsiglio

Monday 06 November 2006 6:08:01 am

I should clarify the distinction between content classes and content classes.

In this case I am not talking about creating a new content class consisting of datatype attributes, but instead content classes that are styled with css and designated by class='xxxxxclass' in the HTML.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Luc Chase

Monday 06 November 2006 7:57:33 am

Mark,
thanks for the guidance. I'll try that... what I would call a CSS Style Class.
So, to distinguish between this and custom tags; custom tags are used for invoking / including special templates? Could they then be used together?

The Web Application Service Provider

eZ debug

Timing: Jan 18 2025 19:35:10
Script start
Timing: Jan 18 2025 19:35:10
Module start 'content'
Timing: Jan 18 2025 19:35:11
Module end 'content'
Timing: Jan 18 2025 19:35:11
Script end

Main resources:

Total runtime0.9090 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.0083 588.8438180.8359
Module start 'content' 0.00830.7451 769.6797551.5313
Module end 'content' 0.75340.1554 1,321.2109336.7500
Script end 0.9089  1,657.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4550210.0002
Check MTime0.00150.1614210.0001
Mysql Total
Database connection0.00180.194010.0018
Mysqli_queries0.830691.37121970.0042
Looping result0.00220.24071950.0000
Template Total0.869295.620.4346
Template load0.00190.214120.0010
Template processing0.867395.405820.4336
Template load and register function0.00030.035310.0003
states
state_id_array0.00110.121810.0011
state_identifier_array0.00130.147420.0007
Override
Cache load0.00150.1691200.0001
Sytem overhead
Fetch class attribute can translate value0.00170.187230.0006
Fetch class attribute name0.00120.135950.0002
XML
Image XML parsing0.00090.098130.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00320.3567260.0001
String conversion0.00000.001130.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs