Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2023-02-24 14:17:17

Pemischl
Member
From: Vienna, Austria
Registered: 2012-01-14
Posts: 22
Website

Re: etc_post: post anything from the public side

Thank you for the hint! I have tried several variations but I still do not fully understand the etc_post logic and could not initiate a change of the Author (the author exists and is active).

V1 fix values for selected[] and AuthorID in tag

<txp:etc_post event="list" step="list_multi_edit" edit_method="changeauthor" selected[]="1894" AuthorID="someone">
</txp:etc_post>

V2 fix values for selected[] and AuthorID enclosed

<txp:etc_post event="list" step="list_multi_edit" edit_method="changeauthor" post="">
   selected[]=1894
   AuthorID=someone
</txp:etc_post>

V3 values for selected[] and AuthorID submitted through form

<txp:etc_post event="list" step="list_multi_edit" edit_method="changeauthor" post="selected[], AuthorID">
</txp:etc_post>

I have no idea what to change and would appreciate every hint.

Best,
Peter

Offline

#26 2023-02-24 18:54:04

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_post: post anything from the public side

The tags own attributes are user, event and step. The rest is populated from $_POST data or from the tags content. You can try this:

<txp:etc_post user="pemishl" event="list" step="list_multi_edit">
edit_method=changeauthor
selected[]=1894
AuthorID=someone
</txp:etc_post>

Offline

Board footer

Powered by FluxBB