Search module issues

A place to discuss development of the Xataface core.

Search module issues

Postby yakotey » Tue Mar 23, 2010 3:26 pm

Hi Steve,

I have some troubles with my app.Can you please help me.

1. How to hide the search box on top right of the interface?

2. How to hide some fields from the search form? (i tried visibility:find = hidden but it is not working; when i print_r the field in SearchForm.php it gives me $field['visibility']['find'] = visible)

3. How to show calendar or select widget in search form for date fields? (in add form it displays right with widget:type = date, but not in the find form)

Thanks a lot for your help man!
yakotey
 
Posts: 7
Joined: Mon May 18, 2009 3:21 pm

Re: Search module issues

Postby yakotey » Sat Mar 27, 2010 11:27 am

Hi Shannah,

Can you help please?

Thanx a lot!
yakotey
 
Posts: 7
Joined: Mon May 18, 2009 3:21 pm

Re: Search module issues

Postby shannah » Mon Mar 29, 2010 10:25 am

1. How to hide the search box on top right of the interface?


Use the show_search preference setting (i.e. show_search=0)
http://xataface.com/wiki/preferences

How to hide some fields from the search form? (i tried visibility:find = hidden but it is not working; when i print_r the field in SearchForm.php it gives me $field['visibility']['find'] = visible)


visibility:find=hidden is the correct way to do it. Check to make sure that you don't have 2 sections in your fields.ini file for the same field. The 2nd one would override any options you set in the first one.

3. How to show calendar or select widget in search form for date fields? (in add form it displays right with widget:type = date, but not in the find form)

Currently this is not supported. Users have to enter dates manually for searches currently (unfortunately). You could implement this yourself by overriding the correct blocks and slots... but I don't have any code samples specifically showing how to do this. Perhaps in a future version this feature will be added.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Developers

Who is online

Users browsing this forum: No registered users and 16 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved