Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 17, 2012 @ 14:40
    Fuji Kusaka
    0

    XSLT Search within Media

    Hi Guys,

    I have an old umbraco website where am using XSLT Search and now the client wants to add a new categories under the Media Sectio where he will be adding new documents like pdf, docs and ppt.

    In addition to this the client wanted a field with the Media Type where he will be able to add some text associated to the file which in other words will make search possible.

    My question is how do i get XSLTSearch to search for the text enter with each file?  I added this in my xslt but doesnt work at all.

      <umbraco:Macro source="-1" searchFields="@nodeName,@pageName, documentMeta" previewFields="@nodeName,@pageName,documentMeta" searchBoxLocation="None" previewType="Beginning" resultsPerPage="10" previewChars="225" showPageRange="1" showOrdinals="1" showScores="0" showStats="0" Alias="XSLTsearch" runat="server" />

    DocumentMeta is the Alias for the added TextBox Multiple for the Media Type Document.

    Any suggestion please? 

    //fuji

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Sep 17, 2012 @ 21:03
    Jan Skovgaard
    0

    Hi Fuji

    Is the document type created in the content section? I'm not sure that XSLTSearch can be used for searching nodes in the Media section so if it's not content that is published from the content section I think it's a "no go"...If it's content nodes then it should be possible.

    Asuming the above property name you've added belongs to a content node then I would check to see if has been hidden for navigation perhaps? Have you also remembered trying to refresh the xml cache?

    Hope some of these pointers help.

    /Jan

  • Douglas Robar 3570 posts 4671 karma points MVP ∞ admin c-trib
    Sep 17, 2012 @ 23:04
    Douglas Robar
    0

    Hi, Fuji,

    XSLTsearch only searches within Content xml. Since media info isn't in the xml it isn't searched (you could use Examine to do it though)

    However, with XSLTsearch you could make this work but you'd need to store info in the content tree. Basically, create a docType with the documentMeta details and an upload (or media picker) property for the file itself. I'd probably make a separate section of the content tree to keep things organized. That would be searchable by XSLTsearch.

    cheers,
    doug. 

     

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 18, 2012 @ 06:38
    Fuji Kusaka
    0

    Hi Jan/Doug,

    Unfortunately the document Type created is in the Media Type used to upload files (docs, pdfs, etc).

    Here i cant store infos in the content tree since the content node is only picking all files from media folder. So basically i cant expect the client to add a new text everytime he will upload some files in the related media folder.

    So Examine should get this working right ? 

  • Fuji Kusaka 2203 posts 4220 karma points
    Sep 22, 2012 @ 10:01
    Fuji Kusaka
    0

    HI Jan/Doug,

    I did set up Examine but do have some issues such as case-sensitive or even getting to get the Url of a media from search results.

    Is there someone whou could help me out please. I have posted a threat here but no answers.

    //fuji

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies