Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max Öhman 42 posts 71 karma points
    Sep 06, 2011 @ 16:33
    Max Öhman
    0

    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)])"/>&lt;br/&gt;) all the HTML disappears.

    This worked for me in version 2.8.1 but not in 3.0.1.

    Peace!

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 06, 2011 @ 16:55
    Douglas Robar
    0

    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. 

     

Please Sign in or register to post replies

Write your reply to:

Draft