Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-05-30 13:24:02
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Search and display tags in custom fields
I’d like to display a article custom field tag which is linked to a search result page that displays all articles with the same tag NOT just the same custom field.
Example:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi dolor magna, mollis non, blandit at, adipiscing vitae, lectus. Fusce vel nisl id velit congue vehicula. Suspendisse adipiscing adipiscing lacus. Nam euismod. Nunc aliquet orci a quam aliquam placerat. Morbi mollis posuere nulla. Proin nisi massa, dignissim eu, pretium a, placerat sit amet, tellus. Nam augue.
Tags: <a href=”#” alt=“search result of all articles tagged with ‘Tag1’”>Tag1</a>,<a href=”#” alt=“search result of all articles tagged with ‘Tag2’”>Tag2</a>
Offline
#2 2007-05-31 02:43:21
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Search and display tags in custom fields
Define “tag”. A category? A keyword?
Offline
#3 2007-05-31 07:43:04
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Re: Search and display tags in custom fields
Yes.
Sorry ‘bout that. Guess I haven’t got hang of the whole semantics of TXP yet. :)
I’d like the keyword written in the custom field to be searchable. I also would like to be able to display a list of all articles that contains the same keyword as written in the custom field.
Offline
#4 2007-06-05 10:03:43
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Re: Search and display tags in custom fields
Bump
Offline
Offline
Re: Search and display tags in custom fields
The full text index Textpattern uses currently includes just the the body and the title of the post. No custom fields.
Beate Paland published a hack for an earlier Txp version which expands full text search to custom fields. This hack would still be applyable, I think.
Offline
#7 2007-06-05 16:50:47
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Re: Search and display tags in custom fields
Ok.
I’ll try that.
What about displaying a list of articles with a specific custom field value/keyword?
Like this:
http://www.hicksdesign.co.uk/tag/code/
Last edited by Nonsense (2007-06-05 16:55:58)
Offline
Re: Search and display tags in custom fields
tru_tags, a plugin.
Offline
#9 2007-06-05 18:03:12
- Nonsense
- Member
- Registered: 2005-11-25
- Posts: 53
Re: Search and display tags in custom fields
That seems to do the trick!
Thanks!
Offline