Hi guys,
I'm trying to edit a document created with formit2resource
I have a link <p><a href="[[~646? &resId=`876`]]">Edit resource</a></p>
and it goes the right resource when I click it.
then what actually outputs on the page is
Array
(
[id] => 876
[type] => document
[contentType] => text/html
[pagetitle] => TEST CREATE 3
[longtitle] =>
[description] =>
[alias] => task1386076021
[link_attributes] =>
[published] => 1
[pub_date] => 0
[unpub_date] => 0
[parent] => 164
[isfolder] =>
[introtext] =>
[content] =>
[richtext] => 1
[template] => 7
[menuindex] => 0
[searchable] => 1
[cacheable] => 1
[createdby] => 254
[createdon] => 2013-12-03 17:07:01
[editedby] => 0
[editedon] => 0
[deleted] =>
[deletedon] => 0
[deletedby] => 0
[publishedon] => 0
[publishedby] => 0
[menutitle] =>
[donthit] =>
[privateweb] =>
[privatemgr] =>
[content_dispo] => 0
[hidemenu] =>
[class_key] => modDocument
[context_key] => web
[content_type] => 1
[uri] => task1386076021.html
[uri_override] => 0
[hide_children_in_tree] => 0
[show_in_tree] => 1
[properties] =>
)
with the form underneath it and none of the fields are populated.
the formit call(s) on that page are:
[[!FormIt? &hooks=`spam,formit2step,email` &preHooks=`resource2formit` &resource2formitfields=`parent,longtitle,content`&emailTpl=`myEmailChunk` $submitvar=`editForm` &emailTo=`
[email protected]`]]
<p>[[+fi.error.error_message]]</p>
<form class="form" action="[[+fi.id]]" id="myEditForm" name="myEditForm" method="post">
<input type="hidden" name="nospam:blank" />
<input type="hidden" name="resource_id" value="[[+fi.id]]" />
<input type="text" name="taskParent" value="[[+fi.taskParent]]" />
<label for="pagetitle">Edit Quick Task Title: <span class="error">[[+fi.error.pagetitle]]</span> </label>
<input id="pagetitle" type="text" name="pagetitle" value="[[+fi.pagetitle]]" size="50"/>
<label for="keywords">
Edit Keywords:
<span class="error">[[+fi.error.keywords]]</span>
</label>
<textarea id="keywords" name="keywords" rows="7" cols="55">[[+fi.keywords]]</textarea> <br class="clear" />
<div class="form-buttons"><input type="submit" value="Edit Resource" name="editForm" onsubmit="return false;"/></div>
</form>
Any thoughts?