-
AuthorPosts
-
April 5, 2014 at 3:56 am #247712
Hi there,
I am working on a project for a client where I am using WordPress with the Enfold theme basically to act as the site’s front-end, with all the nice blogging and CMS functionality that comes with WordPress, combined with the coolness of the page builder that comes with Enfold. But the primary “application” part of the project I’m building using the Yii framework. The application will have its own database SEPARATE from the WordPress database.
I would like to construct pages using purely wordpress with enfold to create the page “wrapper” and enter my own code into perhaps say the Text Block element in the Avia page builder included with Enfold. For instance, I may want to have some form data displayed, where I capture the inputs from the form into my own database. I need to be able to call server-side php from within the text blocks.
So I am ultimately wondering, if I build the site this way, how can I be certain that so long as nobody deleted the pages that I have built with the Avia builder, the contents of those pages (my own html that perhaps calls some server-side scripts) will remain safe? How does the Avia builder store contents in these text blocks elements?
If you have a better way that you would recommend where I can include functionality within WordPress pages through the Enfold theme that calls code OUTSIDE of WordPress please let me know.
Many thanks,
sr123April 5, 2014 at 9:34 am #247755Hi sr123!
You could install a plugin like: https://wordpress.org/plugins/insert-php-code-snippet/ – then you can embed your custom code with shortcodes and you can place these shortcodes into text blocks. The custom code will be saved in a separate option field (of the php code snippet plugin) and eventually you can separate your custom code from the template builder data. The only connection is the embedded shortcode.
We save the template builder data as post meta data.
Best regards,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.