Newbies Melvin Antoine Whitehead Posted July 21, 2011 Newbies Posted July 21, 2011 I created a search form using the PHP Site Assistant and would like to limit the results to those records that have a "yes" value in the "Publish to Web" field. I tried adding this at the top of the source code between the php open and close tags: $find =& $fm->newFindCommand('Web'); $find->addFindCriterion('Publish to Web', 'yes'); $result = $find->execute(); That didn't work; the find commands were ignored. I then tried adding <input type="hidden" name="<?php $fieldName = 'Publish to Web';?>" value="yes"> to the top of the form, which also didn't work. I know pretty much nothing about PHP (hence using the Site Assistant to generate the site). But there must be a simple way for omitting these records. Any advice? Site can be viewed here: http://lrc-fms.iss.lsa.umich.edu/Catalogv3/findrecords.php?-link=Search%20the%20catalog Thanks.
Russell Barlow Posted July 21, 2011 Posted July 21, 2011 I've never personally used the PHP Site Assistant, but I have used the API. You should be able to hardcode that find criteria into the find command that the site assistant created for you which is attached to your submit button.
Recommended Posts
This topic is 5130 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now