HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Search including catalogues by default

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#57861 (In Topic #12633)
Avatar

Well-settled

Hello everyone,

How can I change what will be the predefined content types the search block looks into?

For example it searches in Downloads, Download categories, Image of the day archive, News, but what I mainly want, e.g. Catalogue entries has to be manually checked.

How can I change that?
Back to the top
 
Posted
Rating:
#57881
Avatar

Well-settled

Anyone? I just want to set Search to look into catalogues as well by default since that's where most of my site's content resides. :)
Back to the top
 
Posted
Rating:
#57887
Avatar

Well-settled

Hi,

I think you can just control this with the 'limit_to' block parameter. Give a comma-separated list of content types you want to be searched. The words to use are the same as the files in sources/hooks/modules/search (e.g. downloads).
Back to the top
 
Posted
Rating:
#57917
Avatar

Fan in action

For instance - replacing normal brackets () by square brackets []:

(block limit_to=catalogue_entries,cedi_posts)main_search(/block)


Last edit: by Frits
Back to the top
 
Posted
Rating:
#58020
Avatar

Well-settled

Thank you so much guys, it worked great!!!  :thumbs:
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: