- Colorado State University Libraries
- Research Guides
- CSU Library Website Customization
- Drupal 7: Insert calendar to a node
CSU Library Website Customization
Documentation of CSU Primo and LibGuides customization
- Home
- Exlibris Primo VE Customization
- Exlibris Primo New UI Customization at CSU
- Customize Get It Section
- Moving Send To bar
- Change the hover text for the main menu
- "Expand my results" when there are no results
- Add print journals to E-journals A-Z
- Change "Citation Linker" to "Citation Finder"
- Extra g in front of subject
- Change FRBR setting
- Citation doesn't always pull publisher information
- Availability text change
- Primo Search Logo
- Featured Result Bar
- Resource Recommender
- DOI Search
- BrowZine Primo Integration
- DSpace name change
- Remove "Available at" from Show Only Facet
- DSpace Date Display
- Display MARC 242 field
- Change Brief and Full View Labels
- Customize 5XX Fields
- Add Help Section to Primo Full View
- Add Almetrics to Full View
- Display DSpace Thumbnails in Primo
- Hide Showing expanded results box
- Pre-filter Search for Ebooks
- Create Digital Collections in Primo
- Citation Linker Customization
- SpringShare LibGuides Customization
- Microsoft Office Related
- Colorado Encyclopedia
- Omeka - Creating Avenir Site
Tutorial Followed
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
- 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)
- Go to Block and find the calendar block, click on configure, get its 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.
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
Change from the default post date to Content: Date - start date (field_event_date)
Now the block display correct event dates.
Should we hide past events and only display upcoming events?