Brilliant! That worked.
Now for the main event...passing TV values to the newly created page from a custom Signup form
I guess it would have to include
<?php
$tmplvarid= $_POST[’tmplvarid’];
$value= $_POST[’value’];
$table_name = $modx->getFullTableName( ’site_tmplvar_contentvalues’ );
$fields = array(
’tmplvarid’ => ’$tmplvarid’, \\set your TV id here. (There must be a better way to do this dynamically)
’value’ => $value,
);
?>
NOTE: This code is unlikely to work. Presumably, you would also need to set the contentid, depending on the document being created. How would one go about doing that?
Or am I simply being an idiot and missing a much easier way to achive posting TV values in the new doc along with a user signup?