Forums/How Do I ... ?

Custom Item Search

Jason
posted this on February 19, 2012, 12:59

After creating a new database item type, and entering a bunch of entries for the item type, I realize that the search field doesn't work. By that I mean if you go to the Content Tab and click on any of the types on the left (e.g., Articles, Blogs) when selecting my file type I clearly see the many entires I've made. But when I attempt search for anything using the search field nothing is ever found. Is there something I need to enable so that this is indexed?

Also curious if there is a means to have access to the Category filter button, as the Articles type has?

 

Thanks!

Jason

 

Comments

User photo
Michael Slater
Webvanta

We are now setting new item types to "private" by default, because people were having trouble with things unexpectedly turning up in search results. The search field on the admin site uses the same search index as public search, so it doesn't currently work for item types set to be private. 

Edit the custom item type definition, click on the Metadata header to open up that part of the form, uncheck the Private checkbox, and save the item type definition.

Then, you may have to wait up to 24 hours for the indexer to pick it up. Once the indexer has picked up the new non-private item type, new items should get indexed within 5-10 minutes.

We realize that this search function needs rework, and it is on our to-do list.

As for the Filter, that is not available for custom item types.

Often, the best way to create custom item admin pages is to build regular site pages, and mark the access as Admin, so only admins can see that page. Then you can present the information however you want, and build whatever kind of filtering you want. By wrapping each item as it is displayed in <w:kb:edit>, you can access the edit form for that item by hovering over it (with editing enabled) and clicking on the document icon that appears in the upper left corner of the hover area.

February 19, 2012, 16:13