The function to append the sidebar fields is nested inside the sticky check which causes the sidebar fields to disappear if you opt for the non-sticky sidebar.

Will attach patch.

Comments

MaskOta’s picture

I am sorry i cannot create a patch.

But here is the fixed code

  // Sticky sidebar
  // Disable this functionality if the user chooses.
  var disableSticky = settings.rubik.disable_sticky;
  if ($('#content .column-side .column-wrapper').length !== 0 ) {

    // Move fields to sidebar if it exists.
    $('.rubik_sidebar_field', context).once('rubik', function() {
      $('.column-side .column-wrapper').append($(this));
    });

    if (!disableSticky) {
      var rubikColumn = $('#content .column-side .column-wrapper', context);
      if (rubikColumn && rubikColumn.offset()) {
        var rubikStickySidebar = rubikColumn.offset().top;
        $(window).scroll(function () {
          if ($(window).scrollTop() > rubikStickySidebar) {
            rubikColumn.each(function () {
              $(this).addClass("fixed");
              $(this).width($(this).parent().width());
            });
          } else {
            rubikColumn.each(function () {
              $(this).removeClass("fixed");
              $(this).width($(this).parent().width());
            });
          }
        });
      }
    }
  }
aramboyajyan’s picture

Assigned: Unassigned » aramboyajyan

Thanks for reporting this, will check it and keep this issue posted.

  • topsitemakers committed dae4c63 on 7.x-4.x authored by MaskOta
    Issue #2496411 by MaskOta: Disabling sticky sidebar removes sidebar...
aramboyajyan’s picture

Status: Active » Fixed

Sorry for late response. The patch seems to be working fine and will be committed shortly.

Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.