Edit url based exhibition titles

This commit is contained in:
Paul Nicoué 2022-11-24 17:16:07 +01:00
parent 0c74117eae
commit 9c50caa6d7

View file

@ -8,6 +8,7 @@ return function ($page) {
// Add url based title to each exhibition
foreach ($exhibitions as &$exhibition) {
$exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']);
$exhibition['title'] = rtrim($exhibition['title'], '/');
}
// Get contact fields content