Skip to content

Commit

Permalink
using decorator file to override title tag for work show pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Christy Karpinski authored and Christy Karpinski committed Jul 6, 2023
1 parent f0a9663 commit 0f3923b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 333 deletions.
333 changes: 0 additions & 333 deletions app/presenters/hyrax/work_show_presenter.rb

This file was deleted.

12 changes: 12 additions & 0 deletions app/presenters/hyrax/work_show_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# OVERRIDE Hyrax v3.5.0 to change what appears in the title tags for pages

module Hyrax
module WorkShowPresenterDecorator
def page_title
"#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}"
end
end
end

Hyrax::WorkShowPresenter.prepend(Hyrax::WorkShowPresenterDecorator)

0 comments on commit 0f3923b

Please sign in to comment.