Hi

Is there any way to disable the right sidebar for panel override pages - I don't need to completely remove the right sidebar black through page.tpl as it is needed on other content types. However I have extensive use of panel pages for a range of content and the right sidebar leaves a blank space instead of the panel page extending across 100% width.

Any help would be greatly appreciated.

Cheers

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chlobe’s picture

sorry, obviously mean 'block' not black.

Cheers

pan0s’s picture

you basically have the option to disable both sidebars , not only the right sidebar as far i know . But this wont be a problem since you can create a panel with any sidebar you want and attach any blocks to it...hope this helped

chlobe’s picture

Hi pan0s

I appreciate the response, cheers, but I think I am missing something - I don't see any option to disable the right sidebars in the theme settings and in the panel pages I have created I have selected the disable Drupal blocks and regions. End result is that I still have a rightsidebar with no content.

regards

pan0s’s picture

Chlobe
you dont really have to 'touch' your theme settings at all. U just have to check the disable drupal blocks/regions under the advanced tab when you create the panel page overide ( i assume that your overide settings are correct) . Of course you must also select a preferable layout and in the content tab assign content to each of the panel regions.....have u followed any kind of tutorial for this??

chlobe’s picture

Hi pan0s, thanks for your reply - the panels override settings are correct and I have selected 'disable drupal blocks' in the advanced settings for the panel. Regardless of the panels layout chosen the right sidebar space is left.

I did resort to copying the theme, disabling sidebars and changing the page default size via CSS.

Cheers

roychri’s picture

Status: Active » Closed (fixed)

I presume this issue was answered and resolved based on the comment #5.
Disabling the drupal blocks did make the sidebars disappear for me using a different theme.

petrelharp’s picture

Status: Closed (fixed) » Active

The Panels setting does indeed disable the sidebars. However, it leaves an empty space because by default the width of the content area without any sidebars (the same as with only one sidebar, I believe) is only 745px. I changed this in the css by setting in layout.css

.long { width: 940px }

... which seemed to work fine, until someone pointed out that in IE, the panes that I have on the right appear underneath the content, as if the sidebars were still there. Has anyone else had this problem? How did you change the css, chlobe?

Cayenne’s picture

+1 to this. This is a fabulous theme, but it'd be really cool if, when I disable the blocks, the panel expands to the full width of the window. Do we need a third option?

Guide-1’s picture

I've added this:

.wide{
	width:100%; /* otherwise go wide... :) */
}

to layout.css and changed this:

   if (!$right) {
    $width = "long";
  }

to

   if (!$right) {
    $width = "wide";
  }

in template.php. So, it worked nicely in Opera 10, but i don't know what about the others.

Cayenne’s picture

Looks good, Guide. I'll give it a whirl.

ravimone’s picture

FileSize
47.32 KB
86.08 KB
86.08 KB

hi,

In a web site developed using drupal, has the login page in which it is showing the primary links 1) server 2)details 3)imodules.

but what i need is that in login page i do not want to show all three links, (login_incorrect.jpg). only 1)server should be display (login_correct.jpg), becoz it has sub menus and on select on submenu1 shd display login for demo user, and submenu2 shd display login for guestuser (How to acheive this).
And once the user is authenticated he can get all the 3 primary links (after_login.jpg). like wise there are other types of users are available for which i have to show different pages or blocks etc..(access permissions).
As i am new to drupal, no idea how to achieve these, as this website is developed by others.

I HAVE ATTACHED THE PICTURES, PLZ HAVE A LOOK
FYI theme: "acquia_marina ".

i am in a hang on stage. :(

Please reply ASAP,

Cayenne’s picture

Well, it took me till now to do it, but it worked like a charm. thanks!

elaman’s picture

I guess this changes in template.php:

function marinelli_width($left, $right) {
  // no regions
  if (!$left && !$right) return "wide";
  // both regions
  elseif ($left && $right) return "short";
  // one region
  else return "long";
}

will be better then in #9. In layout.css changes are the same, just add:

.wide{
	width:100%; /* otherwise go wide... :) */
}
dtisom’s picture

Thank you Elaman! Your solution worked for me!

I had gone through at least 8 hours trying the sweaver, Page Theme, and other CSS modification modules with no real luck. Your simple modifications seem to have fit the bill just fine. I am making a special panel page that fills the full width.

I will have to do more testing in other browsers and be doubly sure it hasn't inadvertently changed other characteristics of the site, but I am quite hopeful that this issue is squashed for me.

If anyone else used this method to modify the stock Marinelli theme, be sure to make a copy of it so your modifications won't be lost upon update.

Mr. Nx’s picture

Title: Disable right sidebar for panel pages » How to replace blocks after a user log in?
Version: 6.x-2.92 » 7.x-3.0-beta1
Component: Code » User interface
Assigned: Unassigned » Mr. Nx
Priority: Normal » Major

Hi, am using drupal 7.14 to create a site for my community. The problem is, i am not good with codings and am new to drupal (was using wordpress earlier).

I am using marinelli theme and have placed the user login form on the right side bar and some introductory article on the left blocks. However, after the user logs in the login form disappears and an empty space is left in its place. Can sum1 help me??