Item9897: Create SemanticLinksPlugin
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
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