The Stanford Institute for Economic Policy Research (SIEPR) is a research organization committed to scholarship that helps address the real-world challenges facing governments and businesses in the United States and around the world. SIEPR’s goal is to raise living standards and improve the quality of life by making economic policy more effective at all levels.
Stanford Features
Contribution to Stanford Web Services module
https://github.com/SU-SWS/stanford_affiliate_organization
Script to close/open all collapsed tabs in drupal
<script> function collapseGroups(collapse){ var selector = "fieldset.field-group-fieldset"; if(collapse){ jQuery(selector).addClass("collapsed"); jQuery( "span.close-all" ).hide(); jQuery( "span.open-all" ).show(); }else{ jQuery(selector).removeClass("collapsed"); jQuery( "span.close-all" ).show(); jQuery( "span.open-all" ).hide(); } } </script>
Stanford Wellness Network
Information architecture and search filters for Stanford’s new online resource directory, Wellness Network at Stanford, a comprehensive and searchable site that links students to immediate crisis intervention services and professional counseling as well as academic support services, community centers and student groups.
Related Article:
http://news.stanford.edu/news/2014/september/students-wellness-network-092414.html
Custom Google search
- Create CSE http://www.google.com/cse/setup/basic?cx=00123237129537399800390:cusdfsdfp1pkwpc
- Set query parameter to q_as to avoid conflicts with WordPress and Drupal ?q string
Add search box with redirect to another page<!-- BEGIN: Search Form ----- -->
<div id="search-form">
<gcse:searchbox-only resultsUrl="/googlesearch" queryParameterName="q_as"></gcse:searchbox-only> </div>
<!-- END: Search Form ----- -->Add code on page /googlesearch to display results only
<gcse:search linktarget="_parent" queryparametername="q_as"></gcse:search>- Configure options for colors on the search page and colors of button in search engine
- Optionally you can link site search to webmaster tools for more complete info
Adding image thumbnails to search results
add code https://developers.google.com/custom-search/docs/structured_data#addtopage
<style> .gsc-input input { background-image: url('/search_files/search_bkgr.png') !important; background-position: right !important; background-repeat: no-repeat !important;
} </style>
Using standard Drupal script to hide/show blocks
<script type="text/javascript" src="/misc/collapse.js?n5t2n7"></script> <fieldset class="collapsible collapsed" id="search-filters" > <legend><span class="fieldset-legend"><a class="fieldset-title" href="#"><span class="fieldset-legend-prefix element-invisible">Hide</span> Change Search Filters </a> </span></legend> <div class="fieldset-wrapper" style="display:none"> <?php $block = module_invoke('views', 'block_view', '-exp-class_actions_advanced_search-page_1'); // https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke/7 print render($block); ?> </div> </fieldset>
Override for Open Framework Bootstrap theme
/* ----- Bootstrap Overrides --------- */
html.js input.form-autocomplete {background-position: 100% 8px;}
html.js input.throbbing {background-position: 100% -12px;}
/*legend {
font-size: 16px;
margin-bottom: 1em;
line-height: 1.6em;;
}*/
html.js fieldset.collapsed {
height: auto;
}
Drupal 7 Enhanced Admin Panel
Enhanced content and user admin views for Drupal 7. Features package includes the following views
- Users View that adds filtering by email or username
- Content View that allows filtering by title, content type, author, etc.
- Content View that displays content by logged in user
Drupal – show block on page with a content type
type == 'course' ) {
$bresval = true;
}
}
return $bresval;
?>
Drupal WYSIWYG config
http://wysiwyg.jenlampton.com/
- add tinymce
- add all modules via drush
drush dl wysiwyg wysiwyg_filter vertical_tabs better_formats filefield_paths filefield_sources pathauto transliteration itweak_upload insert image_resize_filter imagecache imce imce_wysiwyg features ctools strongarm exportables-6.x-2.0-beta1 input_formats diff imageapi token - enable features and admin menu