FormTemplateProcessor
FormTemplateProcessor copied to clipboard
What is the right way to set the parent page?
I am trying to set the parent page for a contact submit form entries. I have set it like this:
$form->parent = 1008; (1008 is the ID of the contact form page in this case)
I receive this error message: #0 /...path to my app.../wire/core/Data.php(81): FormTemplateProcessor->set('parent', 1008) #1 /...path to my app.../site/templates/views/contact-page.inc(19): WireData->__set('parent', 1008) #2 /...path to my app.../site/templates/main.php(43): include('/srv/http/jobs/...') #3 /...path to my app.../wire/core/TemplateFile.php(92): require('/srv/http/jobs/...') #4 [internal function]: TemplateFile->___render() #5 /...path to my app.../wire/core/Wire.php(269): call_user_func_array(Array, Array) #6 /...path to my app.../wire/core/Wire.php(229): Wire->runHooks('render', Array) #7 /...path to my app.../wire/modules/PageRender.module(236): Wire->__call('render', Array) #8 /...path to my app.../wire/modules/PageRender.module(236): TemplateFile->render() #9 [internal function]: PageRender->___renderPage(Object(HookEvent)) #10 /srv/http/jo
This error message was shown because you are logged in as a Superuser. Error has been logged.