Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default DOM Draggable Content Template [Design Phase]

    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?

  2. #2
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: DOM Draggable Content Template [Design Phase]

    I should also state the obvious. Tho you can move it around as the customer in the above example.... thats just for example. The point is not for the customer to drag them around, they would be static for the customer, but a similar layout would load for you in the admin area and be draggable.

  3. #3
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    1,410
    Plugin Contributions
    1

    Default Re: DOM Draggable Content Template [Design Phase]

    Ghome, I wish I can do more than just say, Wow, what an incredible idea. This would be an amazing add on for those who know little about php and creating product layouts.

  4. #4
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: DOM Draggable Content Template [Design Phase]

    Glad you like the idea :) I am unfortunately a mediocre javascripter so I have a little bit more to learn about passing session variables to php, but Im pretty close. Now if you goto the demo and double click on the div sections you can see the top/left (x/y) coordinates of the selected box. I just need to pass that to the database for all the boxes on the page. It's not really all that hard.. just takes a little know how that I need to learn

  5. #5
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Re: DOM Draggable Content Template [Design Phase]

    how was this mod progress?! has it been done,Q?
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  6. #6
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: DOM Draggable Content Template [Design Phase]

    Quote Originally Posted by tajul_ashyqin View Post
    how was this mod progress?! has it been done,Q?
    lol no...my knowledge on the subject is still a bit undeveloped.. if it was done you'd see me become president of the world cuz of how sweet it would be i havent even had time lately but hopefully soon i can start looking at it again.

  7. #7
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,948
    Plugin Contributions
    0

    Default Re: DOM Draggable Content Template [Design Phase]

    Quote Originally Posted by voltage View Post
    Ghome, I wish I can do more than just say, Wow, what an incredible idea. This would be an amazing add on for those who know little about php and creating product layouts.
    Voltage why would you leave yourself so wide open like that? Of course you can do more donation! donation!! donation!!!

    Sorry I couldn't resist! You left yourself open for that.

    I was blown away just like you when I went to qhome's demo site. With this kind of innovation and creativity, Zen Cart will attract even more followers. This is good stuff qhome.

 

 

Similar Threads

  1. v150 Make Lightbox Movable/Draggable
    By scott_ease in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 6 Jan 2022, 09:44 PM
  2. Design/template/design editor in admin.
    By Leephi in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 13 May 2009, 12:08 PM
  3. Where to insert js code for 'draggable layer'?
    By rlfreshwater in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Nov 2008, 08:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR