Giter Site home page Giter Site logo

su-sws / stanford-drupal-profile Goto Github PK

View Code? Open in Web Editor NEW
12.0 30.0 2.0 59.9 MB

A dev / test-only version of the Drupal Hosting Service Configuration

Home Page: https://sites.stanford.edu

License: GNU General Public License v2.0

Shell 2.19% Makefile 97.81%
d7 profile

stanford-drupal-profile's Introduction

Version: 7.x-2.6

Maintainers: Marco Wise, John Bickar, Shea McKinney, Kellie Brownell

URL: http://sites.stanford.edu

A drush make and Drupal install profile for new sites on the Drupal Hosting Service at Stanford ("Stanford Sites").

Leading-edge development occurs on this branch, 7.x-2.x. This branch may or may not reflect what is installed on sites.stanford.edu.

The -installed branches (6.x-1.x-installed, 7.x-1.x-installed, 7.x-2.x-installed) track what is installed on sites.stanford.edu. Check out the latest tag on one of those branches to match what is currently installed on sites.stanford.edu.

Drush Make

  • Run drush make make/group.make to create a group or personal site (includes the Stanford Basic theme; drush make will fail if you do not have access to that private theme repository. You may want to use the --force-complete flag).
  • Run drush make make/dept.make to create a department site (includes Stanford-specific themes; drush make will fail if you do not have access to the private theme repositories).
  • Run drush make make/anchorage.make to create a department site for the Anchorage hosting environment (includes Stanford-specific themes; drush make will fail if you do not have access to the private theme repositories).

Drupal Site Installation

Install using drush like so:

drush si stanford --account-mail="[email protected]" --site-mail="[email protected]" --site-name="Stanford Sites Install" --account-name="admin" --account-pass="admin" install_configure_form.stanford_sites_org_type="group" install_configure_form.stanford_sites_tmpdir="sites/default/files/tmp" install_configure_form.stanford_sites_requester_email="[email protected]" install_configure_form.stanford_sites_requester_name="Leland Stanford, Jr." install_configure_form.stanford_sites_requester_sunetid="sunetid" -y

Additional flags for "drush si":

To use SimpleSAMLphp instead of webauth: install_configure_form.stanford_authentication=simplesamlphp

To use Amazon S3 as the file system instead of local file system: install_configure_form.enable_s3fs=1 install_configure_form.awssdk2_access_key="INSERT_KEY_HERE" install_configure_form.awssdk2_secret_key="INSERT_SECRET_KEY_HERE" install_configure_form.s3fs_bucket="BUCKET_NAME_HERE" install_configure_form.s3fs_bucket_region="us-west-2"

stanford-drupal-profile's People

Contributors

boznik avatar cjwest avatar jbickar avatar kbrownell avatar kmakitan avatar mistermarco avatar pookmish avatar sherakama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jbickar msankhala

stanford-drupal-profile's Issues

Semantic Views Demo

Semantic views adds a menu item to Navigation to a demo (seen in v.7). It seems like that would be confusing to new users. Should we remove it?

Backport hosting logic to D6

In the D7 version, we check to see if the server is sites.stanford.edu || publish.stanford.edu. Backport this logic to the D6 version.

Notice: Undefined constant

Need to wrap some of the words in quotes in the CKEditor config:

Notice: Use of undefined constant advanced - assumed 'advanced' in stanford_sites_tasks() (line 31 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant en - assumed 'en' in stanford_sites_tasks() (line 32 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant top - assumed 'top' in stanford_sites_tasks() (line 55 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant left - assumed 'left' in stanford_sites_tasks() (line 56 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant bottom - assumed 'bottom' in stanford_sites_tasks() (line 57 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant p - assumed 'p' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant address - assumed 'address' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant pre - assumed 'pre' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant h2 - assumed 'h2' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant h3 - assumed 'h3' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant h4 - assumed 'h4' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant h5 - assumed 'h5' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant h6 - assumed 'h6' in stanford_sites_tasks() (line 65 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).
Notice: Use of undefined constant theme - assumed 'theme' in stanford_sites_tasks() (line 66 of /afs/ir.stanford.edu/group/webservices/cgi-bin/stanford-d7/profiles/stanford/stanford.profile).

Date API error message

(D7 branch; it doesn't look like I can file issues on a forked project)

At install, the following error message appears:

The Date API requires that you set up the site timezone and first day of week settings and the date format settings to function correctly. [warning]

Disable Update Manager module

Update Manager module (update) gets enabled at install time. Doesn't appear in the standard install profile but somehow gets enabled anyhow.

HULK SMASH!

Add new modules and dependencies

IDG included new modules in the stack as of October, 2011 (Stanford Events Importer, Feeds, Imagecache, Views Slideshow. The profile should be updated to reflect those.

Access Denied error message

(D7 version)

When installing the profile using drush, the front page ends up with "Access Denied" as the only message (not the normal Drupal greeting).

This does not happen using the UI.

Add Stanford-specific hidden fields to install_configure form

See D7

 /**
* Enable webauth module by default.
* We will be setting this programatically so we do not want to present it to the user.
*/
  $form['stanford_sites_enable_webauth']['#type'] = 'hidden';
  $form['stanford_sites_enable_webauth']['#default_value'] = 1;

/**
* Set org type: group or dept.
* Blank if a personal site.
* We will be setting this programatically so we do not want to present it to the user.
*/
  $form['stanford_sites_org_type']['#type'] = 'hidden';
  $form['stanford_sites_org_type']['#default_value'] = '';

/**
* Set temporary file directory.
* We will be setting this programatically so we do not want to present it to the user.
*/
  $form['stanford_sites_tmpdir']['#type'] = 'hidden';
  $form['stanford_sites_tmpdir']['#default_value'] = '';

Remove target="_blank" attribute from WYSIWYG

CKEditor allows ability to make links open in new windows (target="_blank" attribute); we typically disallow that attribute in the wysiwyg_filter settings.

Disable the "open link in new window" option in the WYSIWYG, if possible.

Tweaks to stanford_sites_hosted() function

  • $matches is optional. We don't use it, so we could leave it out.
  • array_key_exists will return TRUE if the value is set, but set to NULL. Not sure if that will ever be the case here. To avoid that, and get a FALSE if the value is NULL, you could use isset().

Powered by Drupal Block

Can you review the change on line 187? Specifically, the use of the bid for finding the "powered by Drupal" block. I wonder if a combination of the module (system) and the delta (0) would be better. We don't know what bid will be assigned to this block. On my sites.stanford.edu site, the block ID is 6 for Garland, and 8 for stanfordmodern.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.