Skip to content

SU-SOE/stanford_soe_helper

Repository files navigation

Maintainers: boznik, cjwest, josephgknox

Changelog: Changelog.txt

Description

The Stanford SoE Helper module provides the custom code for the SoE school site.

Sub Modules

Stanford People Spotlight This module provides the People Spotlight content type.

  • Nodes path is at: /spotlight/

Stanford People Spotlight Administration This module provides manage content for People Spotlight content types.

Stanford People Spotlight Layouts This module provides the context and layouts for People Spotlight.

Stanford People Spotlight Views This module provides views for People Spotlight.

Views Pages:

  • All spotlights view at /spotlight
  • Student spotlights view at /spotlight/students
  • Faculty spotlights view at /spotlight/faculty

Stanford People Spotlight: 1, Vertical, Span4, Card Display: Block. This randomly selects Stanford People Spotlight nodes, displays 1, and uses span4 and Large Square image style

Stanford People Spotlight: 1, Vertical, Span6, Card Display: Block. This randomly selects Stanford People Spotlight nodes, displays 1, and uses span6 and Large Square image style

Stanford People Spotlight: 2, Vertical, Span4, Card Display: Block. This randomly selects Stanford People Spotlight nodes, displays 2, and uses span4 and Large Square image style

Stanford People Spotlight: 2, Vertical, Span6, Card Display: Block. This randomly selects Stanford People Spotlight nodes, displays 2, and uses span6 and Large Square image style

Stanford People Spotlight: 3, Vertical, Card Displays: Block, Page - /spotlight. This randomly selects Stanford People Spotlight nodes, displays 1, and uses span4 and Large Square image style

Stanford People Spotlight: FW Banner - No Quote Display: Block. This uses square image size 370x370

Stanford People Spotlight: FW Banner - Quote Display: Block. This uses square image size 370x370

Stanford People Spotlight: Horizontal Card Display: Block. This randomly selects Stanford People Spotlight nodes and uses Large Square image style

Stanford SoE Helper Bean Types This module provides custom functionality for bean types.

Stanford SoE Helper Event This module provides custom functionality for events.

Stanford SoE Helper_Homepage This module provides custom functionality for the SoE Homepage.

Stanford SoE Helper Landing_Page This module provides custom functionality for landing pages.

Stanford SoE Helper Collection This module defines the collection content type.

Stanford SoE Helper Collection Administration This module provides the collection administration view.

Stanford SoE Helper Collection Layouts This module provides the context layout for collection.

Stanford SoE Helper Collection Views This module provides custom collection views.

Stanford SoE Helper Magazine Views This module provides custom magazine views that use template (tpl.php) files.

Stanford SoE Helper Magazine This module provides custom functionality for the Stanford Magazine. This includes:

  • The newsletter sign-up block that appears on magazine pages
  • Custom blocks that link to the all articles and all issues pages.
  • The Stanford Taxonomy Term view - this view overwrites Drupal's default system for handling taxonomy terms.
  • Some site owner and editor permissions

This module uses the stanford_department taxonomy. This taxonomy is defined in the stanford_news_extras module.

Stanford SoE Helper News This module provides custom functionality for news.

Stanford SoE Helper Page This module provides custom functionality for Stanford Pages.

Stanford SoE Helper Search This module provides Solr search functionality.

Stanford SoE Helper Sitewide This module provides custom functionality for sitewide functionality. This includes contexts and vocabulary including:

  • SoE Accent Color vocabulary
  • Stanford SoE Intranet Link block

Accessibility

WCAG Conformance 2.0 AA Badge Evaluation Date: 201X-XX-XX
This module conforms to level AA WCAG 2.0 standards as required by the university's accessibility policy. For more information on the policy please visit: https://ucomm.stanford.edu/policies/accessibility-policy.html.

Installation

Install this module like any other module. See Drupal Documentation

Configuration

If using the Pingdom cache clear functionality in stanford_soe_helper_cc(), you need to set a variable with the same value as the token you are setting in Pingdom:

drush vset stanford_soe_helper_pingdom_token <token_value>

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.

Developer

If you wish to develop on this module you will most likely need to compile some new css. Please use the sass structure provided and compile with the sass compiler packaged in this module. To install:

npm install
grunt watch
 or
grunt devmode

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