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 - 2003-05-10 - AntonAylward
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.