We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts
    I can make a custom search result template like:

    <div class="sisea-result">
        <h3><a href="[[+link:is=``:then=`[[~[[+id]]]]`:else=`[[+link]]`]]" title="[[+longtitle]]">[[+pagetitle]]</a></h3>
        <div class="extract"><p>[[+extract]]</p></div>
    </div>


    but is there any way to include TVs in as part of this template?

    Many thanks in advance
      • 36818
      • 119 Posts
      Referring to the RTFM: https://rtfm.modx.com/extras/revo/simplesearch/simplesearch.simplesearch

      includeTVs	
      Indicates if TemplateVar values should be included in the properties available to each resource template. Defaults to 0. Turning this on might make your search slower if you have lots of TVs.	
      
      processTVs	
      Indicates if TemplateVar values should be rendered as they would on the resource being summarized. Defaults to 0. Some notes: 
      TVs can be accessed by their TV name [[+myTV]] By default SimpleSearch does not use a prefix, e.g. [[+tv.myTV]] will NOT render. 
      TVs are processed during indexing for Solr searching, so there is no need to do this here.


      So: yes, you can.