This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » CDATA on embed for display image
expandshrink

CDATA on embed for display image

CDATA on embed for display image

Wednesday 08 October 2014 3:41:30 pm - 1 reply

Hi,

I make a table on Bloc XML who display many images. But no image appears.

When I check Inspector elements, I see that :

 <td>
    <paragraph>
        <embed view="embed" size="medium" object_id="85" customomg.gif Emoticonffset="0" custom:limit="5">
        <!--[CDATA[<img src="/var/ezdemo_site/storage/images/media/images/planche-banana/441-1-fre-FR/Planche-Banana_reference.jpg" class="imgFull" alt="Planche Banana" title="" /-->
        ]]&gt;
    </paragraph>
</td>

"<!--" interpreter my code as a comment... How remove CDATA ?

Another question happy.gif Emoticon :

In my template, I put :

{% if not ez_is_field_empty( content, "tableau_comparatif" ) %}
    <h2>Tableau comparatif</h2>
    <div class="wrapTableResponsive">
        {{ ez_render_field( content, 'tableau_comparatif' ) }}
    </div>
{% endif %}

But the render is :

<h2>Tableau comparatif</h2>
<div class="wrapTableResponsive">
    <div class="ezxmltext-field">
        <!--?xml version="1.0" encoding="utf-8"?-->
        <section xmlns:image="http://ez.no/namespaces/ezpublish3/image/" xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
            <paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/">
                <table class="default" border="0" width="100%" custom:summary="Tableau comparaison">
                    <tbody>
... etc... 

Is it possible to remove "<!--?xml....etc... <section xmlns....etc...<paragraph..." and just let <table ...> ?

Infos : EzPublish version 2014.7
Thx for your help happy.gif Emoticon 
Stéphane 

Thursday 09 October 2014 11:23:28 am

It's ok.

Same problem : http://share.ez.no/forums/ez-publ...pilation-with-xml-bloc/(offset)/last

happy.gif Emoticon

Stéphane

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from