This is a work in progress. Soft launch date is set for next week: August 20, 2008. (Yikes.) Cowles Library is the undergraduate library at Drake University in Des Moines, Iowa. Any feedback and/or bug reports would be appreciated.
I'll update with more details sometime after the launch.
Where to start? A custom theme with zillions of modules and growing:
CCK
Blog
Profile
Search
Tracker
Upload
Coder/Developer
Node Import
SimpleMenu
Google Analytics
Node Type Filter
PathAuto
Persistent Login
Taxonomy Browser
Taxonomy List
TinyMCE
Webform
Views
...and others... Phew.
Comments
How did you do the Library Tools?
Hello,
Outstanding site! I love it!
Out of curiosity... How did you do the Library Tools button? That is very, very slick.
Library Tools
Thanks, Jody. The sliding library tools panel is done with the awesome jquery javascript library in only two (!) lines of code... one line to hide it at page load and another to toggle it up and down. Drupal has jquery support built right in. The inspiration for the library tools panel came from the University of Notre Dame's web site.
If you don't mind me
If you don't mind me asking... What two lines did you need to add, and where did you add them? I looked at your source code, but couldn't figure it out.
Thanks!
Jquery
I have CSS and Javascript optimization turned on, which happens to make the source code really hard to read. Here is the code:
Drupal.behaviors.blockToggle = function(context){$('.toolsmaster', context).hide();
$('#librarytools', context).click(function() { $('.toolsmaster', context).slideToggle(); return false; })
}
It can be found in this file, which is included in the head of each page : http://library.drake.edu/sites/default/themes/cowles/tools.js
The first line (ok, well 2nd line) takes the container div ("toolsmaster"- probably not the best name) for the list of library tools and hides it. The next line slides that container div up and down when the link "librarytools" is clicked.
Hope that helped. Let me know if you have more questions.
Post new comment