su-sws / stanford_subsites
A Drupal feature.
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 31
Forks: 3
Open Issues: 1
Type:drupal-custom-module
Requires
- composer/installers: ^1.2
This package is auto-updated.
Last update: 2024-11-29 05:56:53 UTC
README
Version 7.x-3.x-dev
Maintainers: Caryl Westerberg, Shea McKinney
This module provides the ability to create a site in a site, sort of. This module is unlike other implementations of subsite like functionality. This subsite module allows content authors to create subsite nodes in which automatically have their own context and menu associated with it. Content editors can select a new logo, title, slogan, and/or theme to go with the subsite node and all other pages within a subsite. Other content types can be added to a subsite by placing them within the menu structure of the subsite or by tagging them with the subsite specific term.
This module does not provide any sort of editorial permission structure. You may add your own using a contrib module such as Taxonomy Access Control, or Content Access Control.
This module also does not provide any default homepage layouts for each subsite. Those will need to be created manually.
##Install the Stanford Subsites module on your Drupal 7 site
The [Stanford Subsites module can be downloaded from GitHub ยป] (git@github.com:SU-SWS/stanford_subsites.git)
##Enable Stanford Subsites module using Drush
Run the following Drush command: % drush en stanford_subsites -y
Note: Dependencies should be automagically handled.
##Enable Stanford Subsites module from the user interface
- Click Modules and locate the Stanford Subsites module
- Check the box next to each of the modules to enable them
- Click Save configuration
##Configure Stanford Subsites module
- From the administration menu, hover over Configuration
- Click Subsite Settings
####Menus
- Where is my subsite's menu? Subsite does not place menus out of the box, you need to configure the module to create a menu block and place it in your region of choice on the Subsite Settings page.
- Why is the main menu still appearing on Subsites? If context or Drupal's native blocks configuration is being used to place the Main Menu throughout the website, that will need to be updated to exclude subsites, with Context you can use the "Active Subsite" Condition and "No Active Subsite" option. Be sure to require all Conditions.
####Building Views Using Contextual Arguments
One of the strengths of Subsites is the ability to create a single view with a contextual filter for the given subsite and place it on all subsite nodes. This feature can be used to create mini-calendars, news blocks, or carousels for all Subsite homepages.
Configure the contextual filter where content has taxonomy term ID based on the Subsites vocabulary then provide a default value of taxonomy term ID from URL.
Troubleshooting
If you are experiencing issues with this module try reverting the feature first. If you are still experiencing issues try posting an issue on the GitHub issues page.
Contribution / Collaboration
You are welcome to contribute functionality, bug fixes, or documentation to this module. If you would like to suggest a fix or new functionality you may add a new issue to the GitHub issue queue or you may fork this repository and submit a pull request. For more help please see GitHub's article on fork, branch, and pull requests