WordPress.org

Ready to get started?Download WordPress

Forums

Page Builder by SiteOrigin
[resolved] Nesting the grid (2 posts)

  1. mr____
    Member
    Posted 11 months ago #

    Hi man,

    Great Work!

    I was thinking. How about we could nest the grid?!
    For example if you press the "Add row" button and have highlighted a "cell", then you will nest that cell. If you don´t have highlighted a cell then it becomes a new row.

    I´m currently playing around in the "panels.admin.grid.js".
    So if you change this line:
    var container = $( '<div />' ).addClass( 'grid-container' ).appendTo( '#panels-container' );
    to this:
    var container = $( '<div />' ).addClass( 'grid-container' ).appendTo( '#panels-container .grid .cell.cell-selected' );

    Then you have nested a cell.
    But then it takes a little more work to get it all to function thou. I´m no jquery ninja so i was thinking if you have any plans for this ?

    Best regars /

    Mr____

    http://wordpress.org/plugins/siteorigin-panels/

  2. Greg Priday
    Member
    Plugin Author

    Posted 10 months ago #

    Hi there mr ;)

    Thanks! Glad to hear you're liking Page Builder.

    When I first start coding Page Builder, it could handle nesting. It made the whole thing substantially more complex. Both to code/maintain and to use, so I pulled this functionality. Page Builder probably still wouldn't have been ready if I'd tried to keep it.

    This is something I'd consider tackling again, but it's not on the immediate roadmap.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.