Forums / Setup & design / Using the OE with plain_site

Using the OE with plain_site

Author Message

Norman Leutner

Monday 18 September 2006 7:38:59 am

Hi,
usually I'm using a plain design for my projects and create a design extension for each project.

Since the OE 4.1 there seem to be some changes reguarding the embed-object templates.

If I publish a object with an embedded image, the image isn't shown correctly on the user site without creating a override template...

Is there a way to avoid creating those overrides?
Currently I'm using the following design settings:

[DesignSettings]
SiteDesign=plain_site
AdditionalSiteDesignList[]=base

Thanks in advance

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Karl Latiss

Monday 18 September 2006 11:24:15 pm

This is probably due to OE defaulting to embed-inline instead of just embed?

The just released OE (4.1.3) defaults back to embed again.

To fix any existing articles you will need to edit them, change the image view to embed and re-publish.

Atvert Systems
http://www.atvert.com.au

Norman Leutner

Monday 18 September 2006 11:45:53 pm

Thanks for the hint Karl, but this doesn't fix it.
Even if I change it to embed.

The default template design/standard/templates/content/view/embed.tpl which is used for a plain site design only shows the name of the embedded object and not the image like in the admin siteaccess.

Here's the code:

{default attribute_parameters=array()}
{section show=$object.main_node_id|null|not}
    <a href={$object.main_node.url_alias|ezurl}>{$object.name|wash}</a>
{section-else}
    {$object.name|wash}
{/section}
{/default}

For the admin siteaccess there's an override:

[embed_image]
Source=content/view/embed.tpl
MatchFile=embed_image.tpl
Subdir=templates
Match[class_identifier]=image

By standard, embedded object should be shown in the same way as in the admin siteaccess without creating any overrride templates.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh