Posted by Sushil2631 on November 8, 2014 at 9:49am
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:
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)