Forums / Setup & design / problem with xml field

problem with xml field

Author Message

Ben Pirt

Wednesday 30 July 2003 8:14:09 am

Hi all,
I am trying to link a related object (image) into an xml text field and have it show up inline. I think the tag to do this is:

<object id="123" view="embed" class="myClass" />

but when i enter this into the xml text field, save and reload, it shows up as:

<object id="123" class="myClass" />

and shows up in the content view (non admin) as a url. Is this a bug? or is this how the xml field works? It seems like I should be able to enter this into the field but no luck so far :-(

Any ideas from anyone?

Ben Pirt

Bjørn Kaarstein

Wednesday 30 July 2003 11:26:00 pm

Hi Ben.

The XML tags can be found here: http://www.ez.no/manual/user/everyday

Furthermore, you'll have to write an embed override for the imageclass in order to display the images correctly. EzP displays a related object like a link by default. In EzP3.0 this file is called embed_class_5.tpl, in 3.1 I guess you can call it whatever you want as long as you specify it in override.ini.

There is a finished embed in the standard folder, so basically you just have to copy this to your override folder.

Regards Bjørn

Ben Pirt

Thursday 31 July 2003 3:22:57 am

but

<object id="123" view="embed" class="myClass" />

is valid xml to be used in an xml text field according to that document (I was going by it anyway). I understand about making a new embed override, but I don't understand why this field is stripping part of the tag.

Ben

Bjørn Kaarstein

Thursday 31 July 2003 3:29:08 am

This might have something to do with your version of EZpublish.
The everyday functions document refers to the latest stable version I assume...

Regards Bjørn

Wenyue Yu

Thursday 31 July 2003 5:13:35 am

Hi,

The default view for object is embed and therefore
<object id="123" view="embed" class="myClass" /> === <object id="123" class="myClass" />, so don't worry about that if you want to use embed view. But in version 3.1, there is bug that view attribute for object tag is not valid. This bug will be fixed in next release of 3.1 and svn version.

Regards,
wenyue

Regards,
wenyue

eZ debug

Timing: Jan 18 2025 16:24:16
Script start
Timing: Jan 18 2025 16:24:16
Module start 'content'
Timing: Jan 18 2025 16:24:17
Module end 'content'
Timing: Jan 18 2025 16:24:17
Script end

Main resources:

Total runtime0.7886 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.7031180.8438
Module start 'content' 0.00520.6656 768.5469533.3906
Module end 'content' 0.67090.1177 1,301.9375338.1094
Script end 0.7885  1,640.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4865210.0002
Check MTime0.00150.1842210.0001
Mysql Total
Database connection0.00070.083710.0007
Mysqli_queries0.723691.75432020.0036
Looping result0.00170.21882000.0000
Template Total0.764997.020.3824
Template load0.00240.304020.0012
Template processing0.762496.684220.3812
Template load and register function0.00010.014610.0001
states
state_id_array0.00070.094810.0007
state_identifier_array0.00120.151920.0006
Override
Cache load0.00200.2567350.0001
Sytem overhead
Fetch class attribute can translate value0.00170.220040.0004
Fetch class attribute name0.00130.169950.0003
XML
Image XML parsing0.00060.081640.0002
class_abstraction
Instantiating content class attribute0.00000.001450.0000
General
dbfile0.00320.4016210.0002
String conversion0.00000.000630.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0002 secs