We are trying to display a long list of properties of a page. The goal
is to allow this property list to be user extensible (adding new
properties to the wiki) without requiring to change the rendering
template for each added property.

We can easily enumerate all existing properties that shall be rendered
by querying properties of properties. The envisaged algorithm was:

Enumerate all existing properties with an ask query, format=template,
passing each property name as parameter to the template

The inner template uses #ask or #show to retrieve the value of the
current parameter for the current {{PAGENAME}} and renders it.

----

This does not work, because neither ask nor show seems to allow
anything but a literal for propertynames.

{{#show: sandbox:accessRights | ?owl:disjointWith }} is OK

{{#vardefine: propertyName|owl:disjointWith}}
{{#show: sandbox:accessRights | ?{{#var: propertyName}} }} DOES NOT WORK

{{#show: sandbox:accessRights | ?{{Testtemplate|1=owl:disjointWith}}
}} DOES NOT WORK

----

Is there any solution, either to use properties dynamically inside a
template, or to the more general problem of writing a rendering in
cases where users can liberally add properties to the smw system?

Gregor

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to