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

  1. mr____
    Posted 2 years 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 /



  2. Greg Priday
    Plugin Author

    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page Builder by SiteOrigin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.