You are here: Foswiki>Tasks Web>Item9897 (05 Nov 2010, PaulHarvey)Edit Attach

Item9897: Create SemanticLinksPlugin

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: SemanticLinksPlugin
Branches:
Reported By: PaulHarvey
Waiting For: Main.PaulHarvey
Last Change By: PaulHarvey
DataForms are great when you know the data (and its type) which will be entered, ahead of time.

However there are some circumstances where ad-hoc, freestyle lumping of properties onto topics is desirable. Especially in a learning/discovery phase with a new data entry project.

This plugin simply takes [[Property::Value]] syntax, renders it as [[Value]], and when edited stores %META:SLPROPERTY{name="Property" value="Value"}% on save.

Caveats:
  • Multiple values, Eg. multiple occurrences of [[SomeProperty::...]] on a given topic are recorded as follows:
    [[Property::Foo1]], [[Property::Foo2]]
     gives:
     %META:SLPROPERTY{name="Property" value="Foo1,Foo2" occurances="2"}%
     %META:SLPROPERTY{name="Property__1" key="Property" value="Foo1"}%
     %META:SLPROPERTY{name="Property__2" key="Property" value="Foo2"}%
    We could really use an improvement in the core to support array types better, perhaps.
  • No attempt to support {{#set ....}} at this point

-- PaulHarvey - 26 Oct 2010

 
Topic revision: r8 - 05 Nov 2010, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy