This is the next contrib I've been trying to create, but it is nowhere near completed... barely even started. I really just want to get the idea out there to get some feedback and ideas on it before moving forward. Plus get some input from the pro php and jscript coders out there
Basically the idea is simple: a Wysiwyg drag-n-drop way to design templates on the fly, and to save the X-Y coordinates, as well as the Z-order of each element to the database.
You can see a mock example here:
http://www.unbannable.com/zenajax/in...&products_id=1
note that each of the purple boxes are draggable (i used purple temporarily so you could see it easily, but a live store would have no backgrounds obviously). Simply click and hold and drag it around your screen. Currently their positions are saved to a cookie, so if you reload the page, you will see the same layout positions. The goal is to pass the params of each field to the database instead of a cookie so that store owners can open a similar page on the admin side, drag and drop each piece the way they want it, and then save it that way. Then the actual store front would use that positioning when it rendered the page.
Gone could be the days of mucking around in the tpl code. And from there it could hopefully expand to something more as it evolves.
Currently I would say the basic parameters that would need to be saved and loaded would be the div's: top, left, z-style, and ID
Since it is all dynamic based on javascript, the first step would be to pass the session variables to php to save (since php loads server side). And then pass the php variables to the jscript to load the positions.
This is the main idea and basis for the contrib.
Thoughts?
Bookmarks