Share » Forums » Developer » AllowEmpty=true for paragraph is...

AllowEmpty=true for paragraph is generated without  

AllowEmpty=true for paragraph is generated without  

Tuesday 17 April 2007 7:20:58 am - 2 replies

Modified on Tuesday 17 April 2007 7:21:35 am by Anja Lundin

Author Message

Brendan Pike

Thursday 24 May 2007 8:28:04 pm

Hi Anja, did you find any solution to this, I've run into the same problem on 3.9.0 not yet tested on 3.9.2 though.

Edit: In my opinion this is a bug, so please do report it as such. Here is a crude work around until it's fixed.

Create an override template for design/standard/templates/content/datatype/view/ezxmltags/paragraph.tpl

After

{$content}

add the following

{if $content|not} {/if}

Cheers
Brendan

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Anja Lundin

Thursday 24 May 2007 11:12:22 pm

Hi Brendan,
It's interesting to hear other people have troubles with this functionallity. For a while I was worried there was something wrong with my installations only. I will report this as a bug now.

My work around is this:


{*if there is not $content and 'AllowEmpty' for paragraph in content.ini is set to true*}
{if and($content|not,ezini('paragraph','AllowEmpty','content.ini')|eq('true'))}
<p{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>&nbsp;</p>

{*otherwise*}
{else}
<p{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</p>
{/if}

Best regards!

/Anja Bjerleus, Novitell AB

------------------------------------
Anja Lundin
Developer, Novitell AB
Sweden

www.novitell.se

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

36 542 Users on board!

Forums menu