Skip to content

Commit

Permalink
using decorator file to override title tag for 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 187f44a commit f0a9663
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 128 deletions.
128 changes: 0 additions & 128 deletions app/presenters/hyrax/file_set_presenter.rb

This file was deleted.

13 changes: 13 additions & 0 deletions app/presenters/hyrax/file_set_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

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

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

Hyrax::FileSetPresenter.prepend(Hyrax::FileSetPresenterDecorator)

0 comments on commit f0a9663

Please sign in to comment.