Closed (fixed)
Project:
Header image
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2009 at 14:42 UTC
Updated:
19 Jun 2012 at 07:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
jmstacey commentedWe also needed the ability to set conditions based on Organic Groups, so I whipped up a small patch to accomplish this. The patch is for the 5.x branch and needs to be tested. I should have a 6.x patch to share when we begin the upgrade process to Drupal 6 in mid-April. Hopefully somebody will beat us to this though as well as bring the 6.x branch of Header Image to a stable release.
Comment #2
jmstacey commentedSorry, I forgot to mention that this implementation is incomplete. At the moment, only group home pages will have their headers changed. Any sub pages of the group would end up using some other condition, such as URLs. This is obviously not the desired behavior, so I'll have it fixed up as soon as I can.
Comment #3
jmstacey commentedHere's the updated patch. The group ownership of each node will be looked at when determining whether or not a node matches the conditions. The node must simply be in one of the condition groups.
Test it out and let me know how it goes.
Comment #4
jmstacey commentedWe'll be moving to the 5.x-dev version next week to make use of random images. I'll roll this patch for OG support on the dev branch at that time.
Comment #5
baff commentedMaybe an alternative: Mini Panel with context (and visibility rule)
Comment #6
sense-designDrupal 5 not supported any more.