Hi everyone!

In our wiki all of the things is entered by a forms. The content is
organized via categories and queries that make use of semantic
properties. It is therefore crucial that users shouldn't use some of
the wiki-markup inside the forms fields for example:

* two curly brackets will kill the template: }}
* the insertion of category will put the article in the place where we
don't want it to be
* the insertion of a semantic property will lead to a problems with queries

My question is: is it possible to restrict the usage of the
wiki-markup in semantic extensions? If not, what is in your opinion,
the best way to do it?
I came with several possibilities:
* create a separate extension hooked on the action of page change.
Seems too ad-hoc for me.
* create a tag inside of which the restricted markup will be ignored.
It's more like <nowiki> tag, only it's more precise. We can than use
this tag in semantic templates remaining SF untouched.
* add some features in the Semantic Forms. The escaping of curly
brackets seems to be useful thing, and we can also add an optional
parameter to a field declaration. In this parameter we will be able to
list of the kinds of markup we want to be rejected or escaped. Maybe
it could form a separate extension.

Sincerely yours,
Yury Katkov

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to