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.