Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-12-28 07:52:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,093
Website GitHub Mastodon Twitter

Re: Searchable custom fields

what if the custom fields are only searched in an “advanced search” interface? Within this interface there could also be searches for all db fields which can be used on the front end. ie image caption, image title, links description, link title etc… I know that this is not the official ‘request’ but I believe that an advanced search which will be made available only by sites which need it might be a way to go…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2006-12-28 08:26:17

tore
Member
From: Tväråmark, Sweden
Registered: 2006-11-08
Posts: 26

Re: Searchable custom fields

Do you include ‘comments’ when you talk about potentially searchable ‘custom fields’? Should be most important to include as a simple extension of any simple article search!

P.S. Perhaps a simplification: It wold be nice if just a message like “Found in comment(s) link-to-comment …” is displayed in/as the search result in case this would facilitate designing a search with comments included. Then, at the comment, the clever user may use a simple browser search.

P.S. 2007-01-15 Seems that nobody else care about searching comments…? Is this a non-issue?

Last edited by tore (2007-01-15 20:48:30)

Offline

#15 2007-01-15 15:01:46

tbrown
New Member
Registered: 2006-12-07
Posts: 2
Website

Re: Searchable custom fields

Turbo-G wrote:

Hack for searchable custom fields

Turbo-G, thanks a lot! It was easy to get this hack to work for Keywords instead of custom fields. This is exactly what I needed, since I’m using tru_tags to transform the Keywords field into tags.

Offline

#16 2016-06-22 19:54:49

Karsten
Member
From: Leiden, Netherlands
Registered: 2011-04-24
Posts: 47
Website

Re: Searchable custom fields

I’m using an extremely lowtech solution by simply adding

<!--  
copy paste some values of custom fields that really need to be searchable here but make sure to avoid empty lines between opening and closing tag
 -->

to the bottom of my articles body text. The commented-out content doesn’t show on the site, but is included in the search. Not Ideal, but works perfectly.

Last edited by Karsten (2016-06-22 19:57:36)

Offline

#17 2016-06-22 21:17:38

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,743
Website

Re: Searchable custom fields

Hi Karsten, you resurrected a very very old thread. Robert (wet) added a method a long time ago called wet_haystack.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB