Sirsi/SOPAC Part 4

Today we want to create a search box. The first thing we need to do is enable the Php filter module. This allows us to embed php snippets into the page node. This is done at
Administer->Site building->Modules->Php filter

Make sure that you are logged in as the Admin user and create a page.
Create content->Page

We called our Search and added the following php code

<?php
$both=”both”;
print sopac_search_form($both);
?>

Once the page is created you need to go Administer->Content Management->Content
And edit your page. Go to Input format and change it from Filtered HTML to Php code. Now save or do a preview.

Leave a Reply

Your email address will not be published.