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

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

Main resources:

Total runtime0.0146 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.0051 588.1250151.2109
Module start 'layout' 0.00510.0023 739.335936.6484
Module start 'content' 0.00740.0057 775.984494.0156
Module end 'content' 0.01310.0015 870.000033.9922
Script end 0.0146  903.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.4112140.0002
Check MTime0.00117.8240140.0001
Mysql Total
Database connection0.00096.158610.0009
Mysqli_queries0.001913.062930.0006
Looping result0.00000.074910.0000
Template Total0.00128.110.0012
Template load0.00096.220510.0009
Template processing0.00031.851010.0003
Override
Cache load0.00064.371110.0006
General
dbfile0.001510.557480.0002
String conversion0.00000.047240.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