We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 121
    • 36 Posts
    Hello again,

    I now have my images showing in my search results, but wondered if there was a way to only show results from one tv only (which contains a thumbnail image, which is also a link to that images page).

    I cannot seem to get my tv’s to show in the search results. The tv name I created is [*thumbnail*], it is a Rich Text tv. The test page I created contains a the following html in the thumbnail tv (as well as some text and a large image in the content):

    <a href="index.php?id=3"><img alt="Subaru Impreza" height="96" src="assets/images/CarPhotos/subaruThumb.jpg" title="Subaru Impreza" width="96" /></a>


    This is the call I’m using for the search:

    [!AjaxSearch? &AS_landing=`6` &extract=`99:content,tv_content` &order=`publishedon,pagetitle` &extractLength=`500` &ajaxMax=`3` &showMoreResults=`1` &moreResultsPage=`176` &config=`image` &highlightResult=`0` &tplLayout=`simpleSearch`!]


    The title of the test page, the content, and large image are being rendered in the results, but the content of the tv is not.

    Basically, I’m a photographer and would like to create one page for each of my photos on my site. I would like to include content (which will be searchable), and that content will also contain the large photograph. The site will be search based, so the homepage is really just a search box, and a little about myself. The search results should only show thumbnails of all my photographs relating to the word searched for and clicking on the thumbnail will take you to that images page.

    I hope this makes some sense, I’m not very good at explaining things laugh

    Any help would be great.

    Thanks in advance,

    Neil.
      • 121
      • 36 Posts
      help? please? :’(
        • 5811
        • 1,717 Posts
        Hi Neil, as I am a bit buzy today by my work, I couldn’t answer sooner.
        I now have my images showing in my search results, but wondered if there was a way to only show results from one tv only (which contains a thumbnail image, which is also a link to that images page).
        To only show only results from one TV, try to use a filter like this &filter=`tv_content,img,9`. With this kind of filter you will exclude all the documents without a TV with a "img" string included in the content.

        Regarding the call that you use:
        [!AjaxSearch? &AS_landing=`6` &extract=`99:content,tv_content` &order=`publishedon,pagetitle` &extractLength=`500` &ajaxMax=`3` &showMoreResults=`1` &moreResultsPage=`176` &config=`image` &highlightResult=`0` &tplLayout=`simpleSearch`!]
        It’s not important but &AS_landing=`6` is useless as you use the ajax mode (&ajaxsearch=1 by default). In fact your landing page will be #176 (&moreResultsPage=`176`)
        I would like to include content (which will be searchable), and that content will also contain the large photograph. The site will be search based, so the homepage is really just a search box, and a little about myself. The search results should only show thumbnails of all my photographs relating to the word searched for and clicking on the thumbnail will take you to that images page.
        I am pretty sure that we could do that with the new 1.8 version but this needs some tuning and adjustments wink

        Could you send me by personal message, a web address where I can look to your test page example ?