embed-inline + OE 5.2.0 trouble

Author Message

Sander van den Akker

Monday 20 December 2010 5:16:12 am

Hi people.

I am currently having a hard time getting inline embeds work. I want to be able to embed 'file' objects inside a paragraph text.

Using the <embed-inline> tag in an xml field manually and setting up a template override works as expected.

When I try to add a file using the Online Editor however, the editor generates a different tag: <embed view="embed-inline">. According to the documentation there is no way to override an embed template based on the viewmode (which is possible with node overrides according to the same doc).

Anyone got a clue? Thanks!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Marco Rogers

Monday 20 December 2010 7:03:12 am

You're not overriding based on view mode. The view mode of embed-inline means that this template will be called, node/view/embed-inline.tpl or maybe content/view/embed-inline.tpl. That is the standard template. You can override that as usual by matching on class_identifier.

:Marco

André R.

Monday 20 December 2010 1:53:17 pm

You have to click the inline check box to get embed-inline tag, view mode is separate stuff.

Why some one though it was a good idea to have the same name on view modes once upon a time is beyond me.. :)

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

Sander van den Akker

Tuesday 21 December 2010 5:57:58 am

ok, so that was what confused me.

Still, I expect an object to be inline when using the embed-inline view, but since the embedded template is encapsulated inside a div this seems impossible. What is the use of such an embed-inline view?

Anyway, thanks for the hints!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

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 18 2025 02:03:46
Script start
Timing: Jan 18 2025 02:03:46
Module start 'layout'
Timing: Jan 18 2025 02:03:46
Module start 'content'
Timing: Jan 18 2025 02:03:47
Module end 'content'
Timing: Jan 18 2025 02:03:47
Script end

Main resources:

Total runtime1.3643 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1484152.6406
Module start 'layout' 0.00650.0039 741.789139.4844
Module start 'content' 0.01041.3524 781.2734591.4297
Module end 'content' 1.36280.0015 1,372.703112.1484
Script end 1.3643  1,384.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2856160.0002
Check MTime0.00160.1207160.0001
Mysql Total
Database connection0.00120.085810.0012
Mysqli_queries1.305895.7117630.0207
Looping result0.00080.0609610.0000
Template Total1.318096.620.6590
Template load0.00260.187120.0013
Template processing1.315496.413320.6577
Template load and register function0.00010.008410.0001
states
state_id_array0.00390.285710.0039
state_identifier_array0.00270.194820.0013
Override
Cache load0.00220.1606220.0001
Sytem overhead
Fetch class attribute can translate value0.00050.033530.0002
Fetch class attribute name0.00130.095560.0002
XML
Image XML parsing0.00100.069930.0003
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00270.1949240.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs