Hmm, I'm not sure I follow. I was thinking more of creating an actual page or dynamic page I suppose. The user would be able to name it in a field in the form
eg
mywebsite/landingpages/my-1st-landing-page
mywebsite/landingpages/my-2nd-landing-page
Yes, I did yesterday thx. I think it might be part of the solution but I don't want the client to need to add any code or shortcode. The code should already be in the templates.
eg landing page template1 with picture on the left and form-number-2 on the right. These would be pre-coded so the client can add their own picture and text but the form would be pre-set. Make sense?
Yes. So you might do a combination of things. Create a view, then set the form to create a post (maybe page) here with Dynamic content that looks at the view as suggested previously.
Have you seen examples of this done so i can wrap my head around it? I will play around with it but don't want to reinvent the wheel.
I don't. It likely will take a bit of experimenting to wrap your head around it. Watch the video below though. Particularly at about 1:30 he goes to select the view associated with the post to be created. You can create a view or use an existing view. You can change the post type to page if that is what you wish to use instead.
https://www.youtube.com/watch?v=Rb8_zLYTtDg
Then in the view you use or create, put in the previous snippet I proposed:
[if x equals="template-1"]Add your content here this way[/if x]
[if x equals="template-2"]Add your content here that way[/if x]
template-1 would be maybe text on the left and then image on the write, however you code it. Then maybe template-2 is the opposite of that. You simply put your image on the left and then text on the right. Create an entry from the originating form and then view the content as you've filled out the form from the post/page it creates. Then go back into that entry on the backend, edit it and choose the opposite template and then return to the previous page and see the layout change as you've defined in the template based on the shortcode written above (with your design in the "Add your content here" parts.
ok, I'll do some experimenting over the weekend and check back in. Thx @Bobby
Please login or Register to submit your answer