Is there a way to allow a user to choose what asset type to return in a search? E.g. they could choose from a dropdown if they wanted Images, PDF Files, MS Word Files, or a few of these.
Seems like it should be possible.
Is there a way to allow a user to choose what asset type to return in a search? E.g. they could choose from a dropdown if they wanted Images, PDF Files, MS Word Files, or a few of these.
Seems like it should be possible.
One trick would be to store the %asset_type% keyword as a default metadata value and then let the search page search on that. You would probably need to hardcode or manually create the type select field on the front end if you don't want users to manually type the asset type of what they are searching for manually.
One trick would be to store the %asset_type% keyword as a default metadata value and then let the search page search on that. You would probably need to hardcode or manually create the type select field on the front end if you don't want users to manually type the asset type of what they are searching for manually.
Strange that asset type isn't included as one of the Standard Asset Field options, as that would have solved my problem.
Oh well, I will give your idea a shot. Thanks!
One trick would be to store the %asset_type% keyword as a default metadata value and then let the search page search on that. You would probably need to hardcode or manually create the type select field on the front end if you don't want users to manually type the asset type of what they are searching for manually.
Hey Bart. Can you think of a way to choose the asset type like you described, but allow the user to use a search term but use the chosen asset type to return only that asset type?
Hi Nick,
yea I think it is due to the fact that you specify which asset types to search for on the details screen of the search asset, same as statuses. But it would be good to be able to change these dynamically with a drop down field on the search page itself.
If you want to have 2 fields like you mentioned, all you have to do is set 2 search fields up on the search fields screen. One for your search term, this might search asset name, asset short name, asset contents, etc. And then another one for the metadata trick I suggested above. Then you just make sure you leave the Use AND / OR grouping value set as "Match on ALL fields". This will make sure that the user can search for a search term, and only search for PDFs for example.
If they want to search for all asset types on a specific search term, you can have an ALL option on the form on the front end which has all the asset types available in the value, for example "PDF Word Page Event" etc. Or, you can try leaving it as empty as I can't remember if the search page will ignore that value if it is empty and bring back results that only match on your search term field. Would be worth testing a bit, but one of those two options should work.
Hope that helps.