cancel
Showing results for 
Search instead for 
Did you mean: 

Make default search only AllSites

johnny_k
Confirmed Champ
Confirmed Champ
Hello everyone!
How I can change default search Repository in share and make default search in AllSites only.
Try Use tutoril:
http://docs.alfresco.com/community/tasks/filtered-search-custom.html


but nothing changed Smiley Sad 
1 ACCEPTED ANSWER

johnny_k
Confirmed Champ
Confirmed Champ
ok iam make it
1.   download file aikau-1.0.63.jar
2.   unzip file
3.   path:
•   aikau-1.0.63\META-INF\js\aikau\1.0.63\alfresco\header\

4.   Edit file SearchBox.js:
•   find RAW: selectedScope: "repo" and change it
•   selectedScope: "all_sites"

open archive aikau in winrar: go path META-INF\js\aikau\1.0.63\alfresco\header
and add new file in archive.
copy new file to /opt/alfresco/tomcat/webapps/share/WEB-INF/lib/
restart server and WORK !!!!!!

View answer in original post

11 REPLIES 11

johnny_k
Confirmed Champ
Confirmed Champ
ok iam make it
1.   download file aikau-1.0.63.jar
2.   unzip file
3.   path:
•   aikau-1.0.63\META-INF\js\aikau\1.0.63\alfresco\header\

4.   Edit file SearchBox.js:
•   find RAW: selectedScope: "repo" and change it
•   selectedScope: "all_sites"

open archive aikau in winrar: go path META-INF\js\aikau\1.0.63\alfresco\header
and add new file in archive.
copy new file to /opt/alfresco/tomcat/webapps/share/WEB-INF/lib/
restart server and WORK !!!!!!

ddraper
World-Class Innovator
World-Class Innovator

Although you can solve the problem in this way, it's obviously not the recommended way and is certainly not future proof (against upgrade or installation of other modules). 

Ideally you want to be creating an extension module to make this customization. This blog post provides an example of customizing widgets in the header (such as SearchBox). This would be the best approach to take for customizing search.

This blog post shows a fast way of creating extension modules for "full" Aikau pages like search.