If you have a parent Space with a banner image and banner position of "Above toolbar (stretched)", the same banner image will be used by child spaces.

However, if you use a banner position of "Next to Main menu", then child spaces won't inherit the banner image!

This is due to oa_toolbar pulling in the image itself rather than using the oa_appearance_get_space_banner() function from oa_appearance which understands inheritance.

I'll post a patch in a moment!

Comments

dsnopek’s picture

Patch is attached!

This patch depends on #2413891: oa_appearance_get_space_banner() doesn't put $return['image']['attributes']['class'] in array - without it, you'll get a PHP fatal error:

PHP Fatal error:  [] operator not supported for strings in /var/aegir/prj/bucketb_atrium/modules/panopoly/panopoly_images/panopoly_images.module on line 119
mpotter’s picture

Status: Needs review » Needs work

When I apply this patch the default Open Atrium logo disappears from my pages. So still needs some work.

dsnopek’s picture

Status: Needs work » Needs review
StatusFileSize
new2.32 KB
new706 bytes

Ah, sorry about that! This new version of the patch should fix that. I've included an interdiff too, so you can see the change. :-)

hefox’s picture

Status: Needs review » Fixed

As mpotter just said on our company chat, the banner logic needs to be worked in general but this does fix that issue so comitting.

dsnopek’s picture

Thanks!

Status: Fixed » Closed (fixed)

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