I'm a newbie to Drupal and wondered if someone could help. I've recently downloaded 4.7 and installed the OG module as I have 2 groups that require restricted forums and pages.

I also have static pages on the site for generally viewing and for those that want to subscribe to the 2 groups.

I have created a number of static pages and have created a 'block' that contains links to these static pages. However, I only want this block to appear on specific pages....not all pages.

I reviewed the handbook and the option I have was a setting in the configuration of the block called "Page specific visibility settings". However, when I tried this, Drupal just ignored anything I selected under that option.

I researched it further and found a note on http://drupal.org/node/59806 that states..

"It is _not_ compatible with any other type of block view restriction."

So I think I know what is causing it but my question is if this feature is 'disabled' when organic groups is installed then how do you make a 'public' block only visible on some pages?

I've searched for a tip on this but haven't been able to find one. I would have thought this would have been asked previously but perhaps it's just my 'slow' understanding of the OG module.

Can anyone help?

Comments

Evan Leeson’s picture

...as long as you have not selected a group under group visibility settings. You need to select one of these option in the configure screen for your block:

Show block on specific pages:

Show on every page except the listed pages.
Show on only the listed pages.
Show if the following PHP code returns TRUE (PHP-mode, experts only).

Then enter your string in the box, such as

Enter one page per line as Drupal paths. The '*' character is a wildcard. Example paths are 'blog' for the blog page and blog/* for every personal blog. is the front page.If the PHP-mode is chosen, enter PHP code between . Note that executing incorrect PHP-code can break your Drupal site.

I suspect the selction of a group will conflict with the visibility controls below, but that seems to be ok since the reason for selecting a group is to limit to that groups pages.

I want to be a farmer.

roly’s picture

Thanks lectric for replying. I'm not too sure if you understood my question. What I am saying is that Drupal ignores any options you place under "Show block on specific pages" when the Organic Group module is installed. Have a look at http://drupal.org/node/59806 that states..

"It is _not_ compatible with any other type of block view restriction."

So I am still at a loss to have a 'public' block visible on some pages but not others while using the OG module.

Does this make more sense?

skyl1ne’s picture

I had the same problem until I DISABLED "og_block_visibility Allows restricting of block visibility to a particular organic group." in Modules.

Evan Leeson’s picture

and it is being fixed. This behaviour is not planned so the programmer will be fixing it so og_block_visibility doesn't kill block visibility permissions.

I want to be a farmer.

roly’s picture

Thanks for the feedback. I disabled the og_block_visibility and it worked straight away. Thanks for the tip :).