Library Information Technology

Custom Collection Landing Page for HSR

Create a Collection Landing Page  > music/hsr

Structure > Context > international_collection > Add ~music/hsr to not using this context for the new pagae

Clone Contex > internationa_collection => historical_sound_recordings

  • Node type > Remove the Conditions for "Collection Landing Page"
  • Path > Give the path restriction to be "music/hsr"
  • Blocks > Preface Third
    • Remove "Field: field_find_link"
    • Add delta_blocks => "Page title"
    • Add system => "Main page content"
    • Add "Library Hour" block to top of this region after create the block with PHP Code
  • Structure > Blocks > Content > Configure the following
    • Page title => Add "~music/hsr" to not have this block show in Content Area
    • Main page content => Do the same step as above

Add the following iframe in the landing page to display library hour 

<iframe height="60" scrolling="no" src="http://api.libcal.com/api_hours_today.php?iid=457&lid=400format=rss"></iframe>

OR can create a library hours block with PHP code, and style of "block-yul-hours highlight-block"

PHP Code

<?php

  $result = drupal_http_request('http://api.libcal.com/api_hours_today.php?iid=457&lid=405&format=html');
  $content = $result->data;
  print $content;

?>