Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

How can we make Unyson page builder the best WordPress page builder?

Open danyj opened this issue 10 years ago • 12 comments

Current state of mind of all page builder users is so split and most concerns are valid.

WordPress community loves and hates page builder at the same time and for all the right reasons.

Here just 2 posts about this but if you are using page builders you know that there are many more. http://chrislema.com/drag-and-drop-wordpress-page-builder/ https://purposethemes.com/368041/diy-visual-page-builders-wordpress/

Page builders pros:

Easy to use Fast page building You dont have to code You dont need to know how to code

Page builders cons:

Slowing pages down To much code for simple outputs When you disable it you are left to clean up the garbage ( A LOT OF GARBAGE ) Other WordPress plugins incompatibility

A thought and a question:

Since most page builders shortcodes do nothing but spit out the html, is there a way that we can pre-process the builder code while we are in the builder and insert actual HTML in editor box?

What do we get with this?

One of a kind WordPress page builder Faster page rendering Page builder that does not process shortcode on page load Page builder that leaves clean HTML when plugin is disabled ( give users the CSS/JS and they can still use it ) Grateful WordPress community

Question for developers

What do you think about this and is there any way we can make this happen? What would it take to make this happen? Can we "pre-process " shortcodes via ajax on shortcode popup save, retrieve the actual html output and insert in editor ?

@andreiglingeanu , I know you have made shortcode preview while in editor, can we use something like that for actual output?

danyj avatar Sep 19 '16 09:09 danyj

I don't think this is the big problem of page-builder

Page builder that leaves clean HTML when plugin is disabled ( give users the CSS/JS and they can still use it )

dylan-ngo11 avatar Sep 19 '16 09:09 dylan-ngo11

@duongancol that is listed as desired result.

danyj avatar Sep 19 '16 09:09 danyj

Since most page builders shortcodes do nothing but spit out the html, is there a way that we can pre-process the builder code while we are in the builder and insert actual HTML in editor box

I agree with you but as I remembered @moldcraft tried it but no luck.

dylan-ngo11 avatar Sep 19 '16 09:09 dylan-ngo11

@danyj i think, this is not a big problem too, it is enough to use any of cache plugin to give the already generated static to the users.

it would be better to think about front-end builder to make Unyson in 100000% better than others ;)

dk-wordpress avatar Sep 19 '16 17:09 dk-wordpress

@WPJobs frontend builder and page builder in general are just helper tools for anyone who does not know how to code.

What I am proposing here is forward thinking about issues users have with builders and if we can get rid of all the above mentioned cons , Unsyon page builder would be the only html friendly page builder and make manyyyyy users and servers happier.

Currently we are using PHP for all the processing, if we could mix in just a tad of JS for the backend to actually tell us how the shortcode will look like, that output is what can be used in editor.

Think of your customers, when they disable your theme they are left with garbage to cleanup because we do our shortcodes in the theme. If shortcodes would be HTML block they would not have to clean up anything.

danyj avatar Sep 19 '16 17:09 danyj

@danyj and how about styles? If the customer disable my theme, he will stay with a bunch of unstyled (and static) HTML, i don't think that this is exactly what he need :)

dk-wordpress avatar Sep 19 '16 17:09 dk-wordpress

@WPJobs http://prntscr.com/cjwrs7

danyj avatar Sep 19 '16 18:09 danyj

@danyj oh, sorry. I really do not quite imagine this idea, if the user don't want to use my theme, why he still need the HTML, CSS and JS from theme shortcodes

dk-wordpress avatar Sep 19 '16 18:09 dk-wordpress

@danyj In my opinion, we need to optimize the speed at the backend at first. It takes a lot of time when we open shortcode setting, choosing the option then click save. Comparing with Visual Composer or King composer especially, you will see the big different.
I made the videos so you can see it. Unyson http://take.ms/TWUh1

King Composer http://take.ms/1unjZ

Visual Composer http://take.ms/fNqp4

dylan-ngo11 avatar Sep 20 '16 02:09 dylan-ngo11

@duongancol I agree but that is different topic ( speed/optimization ) and you can post that here https://github.com/ThemeFuse/Unyson/issues/1920

danyj avatar Sep 20 '16 05:09 danyj

Since most page builders shortcodes do nothing but spit out the html, is there a way that we can pre-process the builder code while we are in the builder and insert actual HTML in editor box?

The problem with this is that developers lose flexibility.

  1. You no longer get defaults from options.php
  2. You no longer render view.php at each request.
  3. If you release an update - the user will have to go through each page and hit update in order to propagate your changes

I don't like this idea. Totally a NO from my side. It is doable, but I see no value in it.


My 2 cents on this.

First, there was no idea of Unyson Shortcodes before the WordPress Shortcodes. Now that we somewhat separated Unyson Shortcodes from Page Builder (we still might have some work to do on that stage) we are open for some improvements we never thought about. The thing is that you can now even release your shortcodes as a separated plugin and the user will be able to use them - you'll just have to give him a nice interface for that. Possible interfaces:

  1. Teach the user to copy and paste this syntax into HTML, editors or textareas, just don't forget to do_shortcode() that - this will work even if WP Shortcodes extension is deactivated.
  2. Hand him the WP Shortcodes extension that will allow to paste (and edit easily) this snippets of strange syntax right in any wp-editor.
  3. Give him the actual Page Builder that understands shortcodes and allows to combine them via DnD
  4. Build some other UI for him. Sky's the limit.

The main idea is that you can separate your Shortcodes from your theme completely and release them in other ways. Then the UI you build for interacting with them is up to you.


Ways to package and release shortcodes:

  1. Via Theme - everyone does that
  2. Via Plugin - there a custom hooks to load shortcodes from custom places
  3. Via an Unyson extension - which may be potentially paid (who knows, maybe we'll have an Unyson market one day)

Possible ideas for the future:

  1. Build a frontend builder
  2. Improve the current builder to suit the user needs - you'll have to be aware about backwards compatibility
  3. Build Page Builder V2 that will allow to do even fancier stuff with current shortcodes
    1. Better I18n and SEO handling - I don't know what's the current stage on that
    2. Better DnD
    3. Better integration with WordPress Post Editor

The current extension structure is:

  1. Parent: Shortcodes
    1. Child: Page Builder
    2. Child: WordPress Shortcodes
    3. future Child: PB v2
    4. future Child: your next awesome idea

andreiglingeanu avatar Sep 27 '16 09:09 andreiglingeanu

@andreiglingeanu ,

The problem with this is that developers lose flexibility.

thnx for opening my eyes , thus the question for the actual devs.

danyj avatar Sep 27 '16 09:09 danyj