I have set multiple preview fields to the macro (ex. previewFields="dealerTitle, dealerAddress, dealerProduct"). And now I want to for example make a break between the the values when showing the result. When I try doing it where the values are printed out (<xsl:value-of select="string($item/*[not(@isDoc) and name()=string($fieldName)])"/><br/>) all the HTML disappears.
This worked for me in version 2.8.1 but not in 3.0.1.
Editing the result with multiple preview fields
Hi everyone!
I have set multiple preview fields to the macro (ex. previewFields="dealerTitle, dealerAddress, dealerProduct"). And now I want to for example make a break between the the values when showing the result. When I try doing it where the values are printed out (<xsl:value-of select="string($item/*[not(@isDoc) and name()=string($fieldName)])"/><br/>) all the HTML disappears.
This worked for me in version 2.8.1 but not in 3.0.1.
Peace!
Hi, Max,
I would suggest you look for this comment in the xsltsearch.xslt file... that's where you'd want to put the break. Also, you don't need to escape the
<!-- OPTIONAL: include any additional information regarding the search result you want to display, such as createDate, updateDate, author, etc. -->
Also, you don't need to escape the <br />, just put it right in the XSLT.
cheers,
doug.
is working on a reply...