Skip to Questions

Guide FAQ - Your LibGuides v1 Questions. Answered!


For the search box on guides, can we set the default to "All Guides" rather than "This Guide"? What about "This Group" rather than "This Guide"?

Currently on the LibGuides Home, the search default is set to "All Guides." I think this might be a good default for ALL pages. Is this change possible?
Last Updated: Apr 26, 2013  |  1639 Views

Was this helpful? 1   0


Yes, actually - you can! :)

Having each guide search box only search "This Guide" is the default behavior of the system, but by adding a little code into your Custom Footer box on the Admin Stuff > Look & Feel > System Wide page, you can change the behavior to choose what you want the default search to be.

Code to Add to Your Footer

Copy and paste the following into your Custom Footer box:
Note: You must be an admin-level user in your system to do this.

<script type="text/javascript">
  if (document.homesearch.what) {
    len = document.homesearch.what.length;
    for (i=0;i<len ;i++ ) {
      if (document.homesearch.what.options[i].text == 'All Guides') {
        document.homesearch.what.options[i].selected = true;

Want to change it to one of the other search options? (Even a custom search option?)

No problem! Just change All Guides to the exact name of the search option you want to use.

For example, if I had a custom search option for my discovery service that I named "Search for Articles and Books", I'd change All Guides to Search for Articles and Books.

Have LibGuides CMS and want to set a different default search for each group?

No problem! Go to Admin Stuff > Groups and edit the group where you want to change the default search. Then:

  1. Go to the Look & Feel tab.
  2. Add the code above to the Custom Footer box.
  3. Change the All Guides text to This Group.
  4. Click Save Custom Footer.

Or you can change it to one of your custom Search Options. Just change All Guides to the exact name you gave the search option in the Admin Stuff > System Settings > Search Options area.

Answered by Anna BurkeBookmark and Share

Other Answers / Comments (5)

  1. Can you set ONE guide to default to "All Guides" but leave the rest default to "This Guide"?
    by Bryanna on Apr 01, 2013.
  2. Hi Bryanna-
    You can do this with LibGuides CMS. You would need to assign the one guide to a different group and then add the code to that group. From the user perspective the guides will look the same.
    by Michelle Lustig on Apr 01, 2013.
  3. Yikes! When I first changed the default to "all guides" it worked, then when I changed the wording for the other option from "This guide" to "This page" the default changed back to This Guide.
    The FAQ neglected to mention that you also have to change the code in this line to your new wording:
    var is_guide_page = ( search_form['what'].options[0].text == 'This page' ? true : false );
    by Ted Waller on Apr 24, 2013.
  4. Is there a way to change the 'all guides' to actually search a group instead but still say 'all guides'? For example, say I have multiple groups and I want to keep them separate, and I have done what Michelle suggested of having a unique group so that I can change just one guide to default to 'all guides' search (because I am using it as a landing page). But I don't actually want it to search all the guides across groups, just all the guides of a particular group.
    by Jason on Oct 11, 2013.
  5. Hi Jason -

    You can't change the "All Guides" search to search a group, but you can change the term "This Group" to "All Guides" (or anything else you want. There are a couple of things to be aware of before doing that, however.

    First, you would then have two different options both saying "All Guides" but doing different things. One way to avoid that would be to change "This Group" to "All Guides in This Group."

    The other thing to note is that changing the term "This Group" to something else would affect all guides in your site. It can't be applied to one group or one guide.

    If changing that term seems like a good option for you, here's how to do it. Go to Admin Stuff > Look & Feel and click on the Language tab. There is a long list of terms, but if you search the page for This Group you'll find the right spot. Just enter your alternate term in the box next to "This Group."

    Let us know if you have any questions about this.

    -- Ken
    by Ken Liss on Oct 11, 2013.

Need Help?

This site contains FAQs for LibGuides v1 only.

LibGuides v2 Documentation
(You must have a LibApps account to access that site.)

Or click HELP in the orange command bar of your v2 system.


Follow LibGuidesFAQ on Twitter Follow us on Twitter!
 Your questions, answered!

Browse by Popular Topics

Accounts  –  Admin Area  –  API / Widgets  –  Boxes  –  Catalog / Database Integration  –  CSS  –  Customization  –  E-Reserves  –  Embedding Objects  –  General System Questions  –  Group Management  –  Guides  –  Holiday Closures  –  How To...  –  Images  –  LibGuides CMS  –  Links  –  Mobile  –  Pages / Tabs  –  Profiles  –  RSS  –  Search  –  Security  –  Statistics  –  Subject Categories  –  Survey/Form Tool  –  System Administrators  –  Tags  
View All Topics

Related content from Springshare v1 Help