app/models/communication/website/permalink/administrator.rb
class Communication::Website::Permalink::Administrator < Communication::Website::Permalink
def self.required_in_config?(website)
website.has_administrators?
end
def self.static_config_key
:administrators
end
# /equipe/:slug/roles/
# FIXME : Remplacer le roles comme dans Permalink::Author ? (Pas sûr)
def self.pattern_in_website(website, language)
special_page_path(website, language) + '/:slug/roles/'
end
def self.special_page_type
Communication::Website::Page::Person
end
end