Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

letting agent website search system


Go to End


5 Posts   643 Views

Avatar
lozhowlett

Community Member, 151 Posts

29 October 2011 at 12:26am

Hi everyone

I am building a letting agent website, which will have properties on it. I have made the admin system page for it, no problem there. What I need some pointing in the right direction on is how I search on fields like "Number of beds" and price per month from the front end?

Are there any tutorials on this sort of thing, or would you go about it?

Thanks in advance

Avatar
swaiba

Forum Moderator, 1899 Posts

29 October 2011 at 1:30am

Not a specfic tutrial that I know of, but if you take a look at building a From with the stuff you'd like to search by, then putting that in the session and redirecting to a page that displays results. Then add pagination.

Avatar
lozhowlett

Community Member, 151 Posts

29 October 2011 at 1:38am

i suppose what i would really like to know if how to

- post data to something that will listen to it
- how to query the database based on the input from the form
- then display a result set

I am sure there must be some generic tutorials somewhere on getting stuff out of the DB?

Avatar
lozhowlett

Community Member, 151 Posts

1 November 2011 at 12:13am

thanks, thats pointed me in the right direction! :)