Hi there,
Although it sounds really easy, I haven't managed to define a Link that,
when pressed, will stay on the same page but change from VIEW mode
to the EDIT mode.
I tried this
[[My Link Text>>$doc.getURL('edit', 'editor=inline')]]
And I tried to switch the $context object with set LinksAction() etc.
That all does not work as expected. I am currently testing with the
admin account to make sure that it is not a rights problem.
My solution is based on the FAQ example, i.e. XYZClass, XYZSheet and
XYZTemplate. It works nice but Iwant to give the user the ability to switch
easily frpm VIEW mode to EDIT mode while viewing an object. I added the
above line to XYZSheet. The Link has a questionmark behind it.
If I click the Link it shows "edit" in the URL but an empty xwiki edior is
opened instead of the form in EDIT mode.
The work around is currently to access in VIEW mode first and to
replace "view" by "edit" in the Browser URL field - that works but
is of course no durable solution.
Any help would be great.
Thanks a lot
Torsten
p.s. I am using Xwiki enterprise 3.5.1 under Linux with MySQL