stlchristian / stlchristian.edu

Join me as I venture through creating a public Drupal website with all the features we'd ever dream of. This is bound to include some highs and lows, but we'll tackle this thing head-on! This will serve as a public repository to share the development progress of our new website, built on Drupal and hosted on Pantheon.
https://stlchristian.edu
GNU General Public License v2.0
0 stars 1 forks source link

Page titles for athletics schedules #61

Closed ElliotFriend closed 9 years ago

ElliotFriend commented 9 years ago

The page titles on the athletics schedules pages (used to) look like this:

We should definitely figure out a way to add the apostrophe in there!

ElliotFriend commented 9 years ago

I figured out that if we make a custom module to fire on these views, we can alter the title. I've set us up using the hook_views_post_render() call, and it's working.

However, I really ought to figure out how to use the hook_views_pre_render() call, so that we can actually use our caching.

ElliotFriend commented 9 years ago

I spoke too soon. The rendered output holds the right title for exactly one cached output. Then, reverts to "Mens Soccer" formats... dangit!!