Hi Valdis,
On Fri, May 3, 2013 at 4:37 PM, Valdis Vītoliņš <[email protected]> wrote:
> I have customized document (i.e. attached object of the custom class to
> document) and I'd like to change its status from the view mode.
> I tried to modify ClassSheet for view mode with following HTML:
>
> <form method="post" action="/xwiki/bin/edit/$doc.space/$doc.name">
<form method="post" action="$doc.getURL('save')">
> <input type="hidden" name="Custom.Class_0_property" value="$myvalue"/>
## See
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise32M1#HCSRFpreventionisenabledbydefault
<input type="hidden" name="form_token" value="$!services.csrf.getToken()" />
> <input type="submit" value="Submit" name="action_save" class="button">
> </form>
>
> but got error:
> Warning
> This request contains an invalid authentication information.
>
> Could anybody provide me some hints for me in the right direction?
Hope this helps,
Marius
>
> Thanks!
> Valdis
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users