Wrong description format/crop in thumb partial

Issue #46 resolved
Alexander Grein created an issue

The thumb partial under Resources/Private/Partials/MediaAlbum/Thumb.html contain this markup:

<span class="teaser">
    <f:format.crop maxCharacters="17" append="&nbsp;...">{mediaAlbum.webdescription}</f:format.crop>
</span>

In most cases mediaAlbum.webdescription contains html, which is longer than 17 chars. Because of this problem, the output of a album list shows something like this:

<p>This is a  ...

The f:format.crop viewhelper has a respectHtml attribute. Maybe is helps to change the upper markup to:

<span class="teaser">
    <f:format.crop maxCharacters="17" append="&nbsp;..." respectHtml="1">{mediaAlbum.webdescription -> format.html()}</f:format.crop>
</span>

For me this works.

Comments (4)

  1. Log in to comment