- edited description
Wrong description format/crop in thumb partial
Issue #46
resolved
The thumb partial under Resources/Private/Partials/MediaAlbum/Thumb.html contain this markup:
<span class="teaser">
<f:format.crop maxCharacters="17" append=" ...">{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=" ..." respectHtml="1">{mediaAlbum.webdescription -> format.html()}</f:format.crop>
</span>
For me this works.
Comments (4)
-
reporter -
reporter - edited description
-
repo owner Changed it to
-
repo owner - changed status to resolved
Changed it to <f:format.crop maxCharacters="17" append=" ...">{mediaAlbum.webdescription -> f:format.stripTags()}</f:format.crop> to prevent wrong cropped html tags
https://bitbucket.org/franssaris/fs_media_gallery/pull-requests/34
- Log in to comment