Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-27 16:14:52

mlarino
Member
Registered: 2007-06-29
Posts: 367

PHP querys in TXP¿?

Hi,
I am making a site using a bunch of custom fields.
A programmer is going to make the search query for me, searching in the database to get the results, but my question is.

If he makes the rendering of these results in html, is this outside textpattern or inside? can I use txp:tags in that rendering output?
How can I do this?

Its a realestate website, and I will be making searches for houses.
The houses will appaer as thumbnail images and little descriptions that then you click and open the full article.

Can someone help me?
thanks!!!!

Offline

#2 2010-01-27 16:27:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: PHP querys in TXP¿?

mlarino wrote:

A programmer is going to make the search query for me

You mean you’re not using smd_query?! :-o

The results come back into the plugin’s container and therefore you can format them however you like, directly. And you can also paginate the results in the plugin using a special form.

A few people have done real estate searches before (like this) but that’s just srcatching the surface of what’s possible. If you want any specific help, post some more specific questions about what you’re trying to do — e.g. how the user is going to interact with the queries to get what they want, what you want them to see, etc — and someone will try and help.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-01-27 17:31:33

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: PHP querys in TXP¿?

Also, you can investigate wet_haystack, that adds the possibility of searching on custom fields.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#4 2010-01-27 17:34:25

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: PHP querys in TXP¿?

Thanks Stef!!!
smd_query rocks! I read about it before, but I am PHP iliterate…
Thanks for reminding me about it!

Offline

#5 2010-01-27 17:38:02

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: PHP querys in TXP¿?

Gracias Julián
wet_haystack sounds really interesting, maybe I wont even need the help of a programer! :)

Offline

Board footer

Powered by FluxBB