Forums / Setup & design / how to override display of embed object in admin interface?

how to override display of embed object in admin interface?

Author Message

Vytautas Germanavičius

Tuesday 21 April 2009 3:32:32 am

I need to display some more info about embedded object on admin interface, when editing frontpage, which has lot of embed objects.
I is a bit annoying to do "right click/properties" on each of embed objects, to find one which i want to edit.

I tried to make override in this way:

[embed_folder]
Source=content/view/embed.tpl
MatchFile=embed.tpl
Subdir=templates
Match[class_identifier]=folder

but it do not work in edit mode...

{set-block scope=root variable=cache_ttl}0{/set-block}

Olivier Portier

Tuesday 28 April 2009 2:34:09 am

Hi,

The override rule should work but may be it is you override block who already exists.

Change this name <i>[embed_folder]</i> and use a more unique one like <i>[embed_folder_admin_edit]</i>.

Check the Source template path you want to override by checking the list of used templates in the debug output.

The set-block is not useful here. Clear your cash and try again !

Regards
Olivier

Vytautas Germanavičius

Tuesday 28 April 2009 11:25:50 pm

This override works fine in preview mode, but not in EDIT mode.

In edit mode it still shows gray button...

{set-block scope=root variable=cache_ttl}0{/set-block}

André R.

Wednesday 29 April 2009 2:23:55 am

gray button? you mean in oe? what version, only oe5 and up support previewing embed tags, and it never shows it as a gray button, unless your talking about faded toolbar buttons or somthing.

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

Vytautas Germanavičius

Wednesday 29 April 2009 4:24:41 am

yes, in online editor.

When editing "xml block", Embed tag is shown as gray button with paperclip.

I have online editor which comes with Ez publish 3.10.

I affraid to upgrade to version 4.1, because it has problems with websitetollbar and etc.

{set-block scope=root variable=cache_ttl}0{/set-block}