Developer forum

Forum » CMS - Standard features » Search content (in certain page item types only)

Search content (in certain page item types only)

Dmitrij Jazel
Reply

Hello,

In the old days, all you had to do was to settup a Page, attach a "search module" to paragraph, and set to search only in current language layer.

Than with default templates setup as default values - you are ready to do some searching in CMS content.

 

Now:

We have a page with an Item Structure.

One of those items is "News Archive". with Subpages as "News article" items.

There is also Item type "Helpcenter" - that has several of the item types of it's own as children.

And than there is a "Blog archive" that has a type "Blog post" as child.

 

My question is:

What is the recomended way (best practices) to setup a search?

This search must only search in the content, under this certain item type pages. And Ignore other pages. (that would include data saved in different item types of the page items, like article date, and certain "tag" etc...)

 

Should we use Search module for this, or should we use something else?

In the search module I saw the setting: This page with subpages

But we would need perform the same for 3 pages, (search must to through all 3 pages and return 1 searh result).

Idealy it would have to search only under (or inside) only certain itemtypes. So if customers create 1 more item type - so that there would be a easy way of adding this to searchable data.

 

Any tips, suggestions, or best practices would be very welcome :)

/Dmitrij

 


Replies

 
Dmitrij Jazel
Reply

We would like to use repositories for this, but Content schema extender does know only about Content pages. Not sure how to mix items with it.

/Dmitrij

 
Dmitrij Jazel
Reply

Found actually this way of solving it. Might be a good way to approach the issue:

http://developer.dynamicweb.com/forum/development/excluding-pages/items-in-weighted-search.aspx?PID=48

/Dmitrij

 

You must be logged in to post in the forum