Hey guys, Thanks for getting back to me. I didn't realise that the attachments would be stripped.
Here are the two files in full. The first is the imageTopWrapper.js <%@taglib prefix="hint" tagdir="/WEB-INF/tags/vhosts/marfeel/tags/hint" %> <%@ page import="com.marfeel.dali.tags.SummaryTagStrategy" %> <hint:articleBody forceBigImage="true"> <hint:articleImage size="BIG" backgroundStyle="horizontal"/> <hint:articleShare /> <div class="mrf-articleText"> <hint:premiumWrapper> <hint:articleHeadlines author="true" date="true"/> <hint:articleSummary extended="${extended}" strategy="<%=SummaryTagStrategy.MOSAIC%>"> <hint:articleImage size="SMALL" backgroundStyle="horizontal"/> </hint:articleSummary> </hint:premiumWrapper> </div> </hint:articleBody> And here is the second file, the tag file artileBody.tag <%-- ~ Copyright (c) 2013 by Marfeel Solutions (http://www.marfeel.com) ~ All Rights Reserved. ~ ~ NOTICE: All information contained herein is, and remains ~ the property of Marfeel Solutions S.L and its suppliers, ~ if any. The intellectual and technical concepts contained ~ herein are proprietary to Marfeel Solutions S.L and its ~ suppliers and are protected by trade secret or copyright law. ~ Dissemination of this information or reproduction of this material ~ is strictly forbidden unless prior written permission is obtained ~ from Marfeel Solutions SL. --%> <%@attribute name="alwaysImage" required="false" type="java.lang.Boolean" %> <%@attribute name="forceBigImage" required="false" type="java.lang.Boolean" %> <%@attribute name="mediaSelectorStrategy" required="false" type="java.lang.String"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="dali" uri="http://dev.marfeel.com/jsp/mrf/dali" %> <%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <%@taglib prefix="hint" tagdir="/WEB-INF/tags/vhosts/marfeel/tags/hint" %> <%@taglib prefix="ui" tagdir="/WEB-INF/tags/vhosts/marfeel/tags/ui" %> <c:set var="imageType" value="NONE" scope="request"/> <c:set var="contentImg" value="" scope="request"/> <c:set var="imageClassName" value="" scope="request"/> <c:set var="pocketClassName" value="" scope="request"/> <c:set var="avoidTransitioner" value="${not empty param.marfeelContext and param.marfeelContext == 's_d' and theme.name == 'k'}" scope="request" /> <c:choose> <c:when test="${not empty uIFeatures.get('defaultMediaSelectorStrategy')}"> <c:set var="defaultMediaSelectorStrategy" value="${uIFeatures.get('defaultMediaSelectorStrategy')}"/> </c:when> <c:otherwise> <c:set var="defaultMediaSelectorStrategy" value='HINT_OR_DETAIL'/> </c:otherwise> </c:choose> <dali:mediaSelector item="${item}" var="media" strategy="${(empty mediaSelectorStrategy) ? defaultMediaSelectorStrategy : mediaSelectorStrategy}" articleSize="${size}"> <c:set var="contentImg" value="${media.src}" scope="request"/> <c:set var="imageClassName" value="mrf-image" scope="request"/> <c:set var="imageType" value="BIG" scope="request"/> <c:if test="${!forceBigImage && media.width < 200}"> <c:set var="imageType" value="SMALL" scope="request"/> <c:set var="imageClassName" value="" scope="request"/> </c:if> </dali:mediaSelector> <c:if test="${alwaysImage}"> <c:set var="imageClassName" value="mrf-image" scope="request"/> <c:set var="imageType" value="BIG" scope="request"/> </c:if> <c:if test="${item.pocket != null}"> <c:set var="pocketClassName" value="${item.pocket.className}" scope="request"/> </c:if> <c:choose> <c:when test="${not empty item.detailItem}"> <c:set var="headline" value="${fn:escapeXml(item.detailItem.getTitle())}"/> </c:when> <c:otherwise> <c:set var="headline" value="${fn:escapeXml(item.getPageTitle())}"/> </c:otherwise> </c:choose> <c:if test="${not empty forcePhotoArticle && not fn:contains(articleClass, 'mrf-photoArticle')}"> <c:set var="articleClass" value="${articleClass} mrf-photoArticle" scope="request"/> </c:if> <article data-mrf-article="${section.name}${fn:length(item.uri) == 0 ? item.id : item.detailItem.id}" data-mrf-section="${section.name}" data-mrf-section-title="${section.title}" data-mrf-sectionId="${linkedItem == null ? section.name : 'articleLink'}" data-mrf-extracted="${item.isExtracted()}" data-mrf-uri="${item.uri}" data-mrf-layout="${layout}#${position}" data-mrf-headline="${headline}" data-shortcut="navigationLevel:open:details" <c:if test="${not avoidTransitioner}">data-mrf-transitioner="${transitioner}"</c:if> <c:if test="${not empty virtualPageId}">data-mrf-virtualpageid="${virtualPageId}"</c:if> class="${articleClass} ${imageClassName} ${pocketClassName}"> <c:choose> <c:when test="${not empty buttonType}"> <ui:button type="${buttonType}" url="${item.uri}" buttonClass="mrf-buttonArticle mrf-hidden-link ${not empty buttonClass ? buttonClass : ''}"> <jsp:doBody /> </ui:button> </c:when> <c:otherwise> <jsp:doBody /> </c:otherwise> </c:choose> </article> Thanks again for the help. Its really appreciated. Kind Regards David On 24 May 2017 at 16:18, Christopher Schultz <ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > David, > > Your attachments were stripped from the list. Can you put the text > directly into your post? > > Thanks, > - -chris > > On 5/24/17 6:29 AM, David Kavanagh wrote: > > Hi Mark, > > > > Apologies for the delay. I have the files that should reproduce > > the error for you. The imageTopWrapper.jsp loads the > > articleBody.tag. Then inside the articleBody.tag file the > > following section loads class names into the class attributes. > > > > <article data-mrf-article="${section.name > > <http://section.name>}${fn:length(item.uri) == 0 ? item.id > > <http://item.id> : item.detailItem.id > > <http://item.detailItem.id>}" data-mrf-section="${section.name > > <http://section.name>}" data-mrf-section-title="${section.title}" > > data-mrf-sectionId="${linkedItem == null ? section.name > > <http://section.name> : 'articleLink'}" > > data-mrf-extracted="${item.isExtracted()}" > > data-mrf-uri="${item.uri}" data-mrf-layout="${layout}#${position}" > > data-mrf-headline="${headline}" > > data-shortcut="navigationLevel:open:details" <c:if test="${not > > avoidTransitioner}">data-mrf-transitioner="${transitioner}"</c:if> > > <c:if test="${not empty > > virtualPageId}">data-mrf-virtualpageid="${virtualPageId}"</c:if> > > class="${articleClass}${imageClassName}${pocketClassName}"> > > > > This is the correct output when the trimSpaces flag is not > > enabled. > > > > class="mrf-article mrf-article--photo mrf-page mrf-noFillet > > mrf-author mrf-m mrf-image "> > > > > > > This is the output after it is enabled > > > > class="mrf-article mrf-article--photo mrf-page mrf-noFillet > > mrf-author mrf-mmrf-image"> > > > > > > I have attached the two necessary files. Hopefully this can > > reproduce the error for you > > > > Thanks > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJZJZZMAAoJEBzwKT+lPKRYXpYP/3ZS4M7eaZ+/13kY09RWe1cP > m9THOTZxZNOuv/8FV5Zysdy1c2c1FWAyyS/JfIt0k2j6mDiEYOi9zjR1Bcrue05Z > sI1UHUeFK4t+uPEQiXmz0NPrH+1Wj/d3QqbZrdhmZ6EJBFf5vZTWeft6ynX1Gjpc > EV20DMMYjblsStwF1NTflJxbWBXkvYD8Kj8CzKpfExZF73AZdpxcScSjXsky3+4V > W2Gm2LkQ9tKBa4Zzz8p0DCt1iHCMb8qUVHWd6zoLW10NcScwTHhd/uSj1ZVqMNv5 > P0K0Vvw8tSZ5/TuVnZZeSZgIlhsNwX2JAoIjiqrid0bn0IEM54k5ULZnq7+fBoZP > eeAMybADTZhgjUqOjeKarV5GK3uGTkGble0LVq5NFETTwd3eZIwTij1Xd7YHhPPq > uK44R9GzhWwI+k7CNUMU3l4SXDLBaFklCHevfw+ibpW1tP3hvXMLOiTD23gG9xHS > pn7cjLKps7ovR0WeYFLwLtzFSW6GjlUdU1nvRqIeg0+RpcVI/BZvOvaneuKGKgan > MLUayvdNwhY3b29d7i0e2zV8hVAD7LSTVDlMeLjOfvftuxgPXBrUagQktHjr/6tA > l11RjI86F0TbWX/ZSFvrKfpBkp7OpIsC/ayuovm4bWosCIIK8HzUc3GQUc1G34yD > IyerNligTd2KezQytipB > =uh7o > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >