Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Bloc building page for Textpattern (Just a Thinking)
Hi everyone this is only a inkling about a bloc building page on Textpattern,
Over past years some new features had pop on textpattern and i thinked that we have all the necessary tools to buils a bloc page builder for txp.
We have txp:form, txp:yield combo that can render bloc information with inserted data, if you look at Wordpress page builders as text you will see that it s the same thing!
Then the only thing that needed is the js to handle the page builders itself with forms to put variable data on it!
If I am mistaken correct me.
Cheers.
Offline
Re: Bloc building page for Textpattern (Just a Thinking)
It’s definitely possible. Although the WP block builder in WP is an absolute nightmare!
I think Phil Wareham and maybe Gary (giz) have done some work on this in the past.
One method is to use the article override_form to choose how you want that article to be rendered, and then set the forms up to be block renderers that takes the various bits of article data and puts them into the form template. So you can vary the output by changing the form that an article uses.
The other, more powerful, way is to set up forms as Shortcodes and construct pages using a series of calls to those, with <txp:yield>
and the spaceship <+>
to inject content from article fields.
You can also use the ?f=form_name
syntax in the URL if you register the form type in Advanced Prefs.
It’s a lot of work, but it’s doable.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Online