Add a form connected to a workflow to the agency theme #13785
Unanswered
rho-cassiopeiae
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I apologize for this "I don't understand anything pls help" kind of question, but I'm in a big rush. I will take time to learn Orchard properly later, but now I only have a couple of days to throw together a landing page for a friend, so I need something dirty quick.
Basically, the default agency theme suits my needs well, apart from the form at the bottom. As far as I understand it, this form is not actually connected to anything, doesn't represent any content item, etc., it only exists as html code in the template file.
I need a form that's connected to a workflow, which creates a new content item of a certain type from the submitted form data.
So I added a Flow part to the LandingPage content type, added a form with inputs and a submit button to it, connected it to a custom workflow – this I understand how to do. What I don't understand is how to display it.
My LandingPage content item has the flow part with the form, but it's not rendered. I'm guessing it's because I should somehow add it to the template, but I can't figure out how.
I can see that other content parts of the page (Services, About, etc.) are accessed as properties
Model.ContentItem.Content.Services
,Model.ContentItem.Content.About
, etc., but how do I access the Form?Beta Was this translation helpful? Give feedback.
All reactions