thank you for answering. Now I see the problems too and will reduce the
project accordingly to provide only managing of well declared text parts in
the front end while announcing the exceptions of functionality. By the way
just for interest, could you answer the following questions too?
- Is there a db-scheme available for SMW?
- Do you know a parser-funktion of object parser or another object which
will turn wiki-text into HTML-markup?
thank you, stevie
Von: Jeroen De Dauw [mailto:jeroendedauw@...]
Gesendet: Freitag, 8. Juni 2012 14:41
Betreff: Re: [SMW-devel] in place editing and SMW
In-line editing gets rather tricky when parser functions are involved. Since
most SMW data ends up being passed via templates, having an inline editor
for templates would go a long way, but I think this already exists to some
extend. Editing arbitrary properties is a lot harder, since they might be
set using the extended link syntax or #set, both of which can take things
such as template parameters and the results of other functions. And they
might even just be computed by SMW (ie Modification date).
So I'd be very careful to not reinvent the wheel, since effort in this
direction has already been done, and also not underestimate the difficulty
to get this to work nicely.
> Do I have to make changes on the server side to the SMW-Tables or will
this automatically happen after a page refresh with the new page content?
The data held in the SMW tables is "secondary data" in the sense that it is
computed by parsing the actual page content. It should always be possible to
get rid of the data in the tables and regenerate it from the actual page
content. So if you go write directly to the tables and not have it changed
in the actual page, you'll run into problems. So a working (although maybe
not very efficient) approach would be modifying the page content and just
saving it, without caring at all how SMW deals with the data. In this case
your integration with SMW would mainly consist of understanding the extended
link syntax and #set.
Good luck with your project :)
Jeroen De Dauw
Don't panic. Don't be evil.