Personal tools
You are here: Home Documentation FAQs How do you hide search from users not logged in?
Document Actions

How do you hide search from users not logged in?

Up to Table of Contents

This FAQ applies to: 3.0, 3.1, 3.2

I'm trying to make an adjustment on an OPAC. Is there a way to hide the 'search' form/buttons from users who have not logged in yet? Also, can it be done without editing the templates? Using jscript is fine or via any other method that can be done through System Preferences.

What you can do is use http://plugins.jquery.com/project/cookie

Then you can do something like

var cookie = $.cookie("CGISESSID");
 if (!cookie){
  hide the search
}