Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Search form  (Read 448 times)
0 Members and 1 Guest are viewing this topic.
Hamms
Guest
« on: August 22, 2005, 06:51:00 PM »

The search feature pulls the input type from whatever was set in the admin area. I have some fields that I would want to be of type text in the search form and type textarea in the admin section. Is there a way to do this?
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: August 22, 2005, 08:43:00 PM »

** Is there a way to do this? **

Not easily.

Those fields is generated in the default.html template file that starts:

foreach $field (@$fieldnames) {

The instance for the field you are interested in would need to be 'trapped' and when it was suppose to occur, do something else. You can see something similar (but likely not exactly what you need) described for the Even View screen:

LINK > Break apart event title and description

JFYI

Dan O.

------------------

Logged
Hamms
Guest
« Reply #2 on: August 23, 2005, 04:01:00 AM »

Yes, I saw that section. Unfortunately, I don't know perl. I see that this line delivers the input box and tells it of what type and how big it should be.

code:

<%= &main::GetSearchFieldInput($db->{'properties'}->{$field},$field,$search_params) %>

I was also able to figure out that  this...

code:
<%= $db->{'properties'}->{$field}->{'type'} | | $field %>

...returns the input type. I have no idea how to put this information to use though.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: August 23, 2005, 12:40:00 PM »

Maybe someone has done something similar previously and will provide the code?

Otherwise, my services are available for hire if you can't accomplish it yourself. If interested, you can email me to discuss it.

Dan O.
www.much2.com
the Unofficial CalendarScript - Mods and Plugins site

------------------

Logged
Hamms
Guest
« Reply #4 on: August 23, 2005, 05:41:00 PM »

I'll keep that in mind. You may be just what I need in the end.
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #5 on: August 23, 2005, 07:24:00 PM »

**  I have no idea how to put this information to use though. **

I believe $field will be the name of the field being worked on at the time. (You could try printing it out to see for sure). If so, it could be used in a comparison that if it matched the particular field you wanted handled differently, some alternate code could be printed out instead of what would otherwise be printed.

JFYI

Dan O.

[This message has been edited by DanO (edited August 23, 2005).]

Logged
Pages: [1]   Go Up
Print
Jump to: