CSU Library Website Customization

Documentation of CSU Primo and LibGuides customization

Steps

  • I installed calendar module and activated couple of module required by calendar module. 
  • Created a calendar of page/block
  • Created content type: event with Date field
  • Created an event, get node id
    get node id
  • Go to Views and open the calendar view, add filters for event nodes created. Or follow the tutorial to Add view from template.
    • Make sure change fields from Content: Post date to Content: Date
    • change filter criteria to content type events
    • !!! Change contextual filters under Advanced from Content: Post Date to Content: Date - start date (field_event_date)
      view: calendar

 

  • Go to Block and find the calendar block, click on configure, get its id

    Get calendar block id

get block insert id

  • Go to the node, use source code insert the code 
    [block:views=calendar_3-block_1]

Preview

Problem Encountered: Even if the view's preview is correct and month view (https://coloradoencyclopedia.org/calendar-created/month) is correct too, the page with inserted block is still showing event dates of creation dates not actual even dates. 

incorrectly displayed event dates

Solution:

Tabs on the top for the view editing page have to be configured separately. I changed the default month view but not block. Do the same for the block. !!! Change contextual filters under Advanced from Content: Post Date to Content:Date

view editing

 

block editing

Change from the default post date to Content: Date - start date (field_event_date)

date change

 

Now the block display correct event dates.

correctly displayed event dates

Should we hide past events and only display upcoming events? 

 

URL: https://libguides.colostate.edu/web_customization | Print Page