We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You must opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>SearchFormatFormField (10 May 2003, AntonAylward)
Tags:
create new tag
, view all tags

Question

Whe doing a search with a format that includes " ... $form(TopicClassification) ..." not value was being returned in many cases.

The problem was a space the the "title" of the META:FIELD

This line failed the search

 %META:FIELD{name="TopicClassification" title="Topic Classification" value="Administrative"}%

This line produced a hit and reurned "Administrative"

 %META:FIELD{name="TopicClassification" title="TopicClassification" value="Administrative"}%

I would have thought that the "name" is the key not the "title".

Is this the same as MultiExtractionWithinTopic ?

  • TWiki version: 01Feb2003
  • Perl version: 5.6.1

  • Web server & version: Apache 1.3
  • Server OS: Mandrake Linux 8.1
  • Web browser & version: n/a
  • Client OS: n/a

-- AntonAylward - 08 May 2003

Answer

Using "name" or "title" as the key for formfield(), this is debateable. It might make more sense to switch from "title" to "name", but this might break existing content. You can post an enhancement request in the Codev web if you feel strongly about it. For now use $formfield(TopicClassification) if your field name is TopicClassification, or use $formfield(Topic Classification) if your field name is Topic Classification.

-- PeterThoeny - 09 May 2003

I don't see a "debate". The "name" is a key. The "title is the description". If I port a wiki to another language I can change the description, but the key should be independant of the end user's language.

When, in "The Next Generation", we convert metadata to a seperate storage and give it a plug-in database back end and a tied hash front end, we will be thinking more in terms of "keys" than we are now.

-- AntonAylward - 10 May 2003

Topic revision: r4 - 10 May 2003 - 12:04:00 - AntonAylward
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback