Issue with customising a department vsite's home page in OpenScholar D7

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Sushil2631's picture

Hi there,
I have latest openscholar + drupal 7.31 installation. I have the main site and 5 department sites and many more personal sites. I need to display a view generated block on the main site and not on the rest of the vsites. Currently view created block is appearing on the front page of the main site + front page of all the department and personal vsites. Can anyone provide some help on "How to display blocks on a specific vsite's front page but not on others" .

I have been stuck with this issue for a long time. Any help much appreciated.
Thanks in advance!

Comments

Thanks - we found a solution:

Sushil2631's picture

Thanks - we found a solution:

Step 1 : Go to Admin -> Structure -> Content Type -> Page -> Manage Fields -> make the "Group Audience" field as not mandatory (because its a simple page)
Step 2 : Create a Page with the same URL as the department vsite homepage
Step 3 : Now create a new custom context (Admin -> Structure -> Context) that enables the particular view / content to be shown on that particular vsites homepage (Properties are detailed in steps 4 & 5)
Step 4 : In the Conditions -> Path add the realtive URL of page (Step 2)
Step 5 : In the Reactions, add block (related to the view) to any region
Step 6 : Save the Context.

Since the page URL and that particular vsite URL are identical, the view / content created is now displayed on the required page (which itself is displayed on the dept vsite homepage)

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week