Ciaran Baker
Member
I'm creating a page node that contains a form. I'm quite new to the XenForo syntax, I've made custom pages which display information but never anything like this.
The section in my page template that I'm struggling with is this:
I want to use a callback to set a value for my editor row, however I also want to insert the new data from the editor row into a database with another callback. I've been trying to do this for over an hour now and I would appreciate any help.
The section in my page template that I'm struggling with is this:
HTML:
<xf:if is="$xf.visitor.is_moderator">
<xf:form action="{{ link('park-status') }}" class="block" ajax="true">
<div class="block-container">
<div class="block-body">
<xf:editorrow name="status" value="" label="Status" />
</div>
<xf:submitrow submit="Submit" />
</div>
</xf:form>
</xf:if>
I want to use a callback to set a value for my editor row, however I also want to insert the new data from the editor row into a database with another callback. I've been trying to do this for over an hour now and I would appreciate any help.