Last modified by Super Admin on 2026/04/05 18:59

From version Icon 36.1 Icon
edited by Super Admin
on 2026/03/10 14:40
Change comment: There is no comment for this version
To version Icon 35.1 Icon
edited by Super Admin
on 2026/03/10 14:36
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -1,13 +1,5 @@
1 1  {{velocity}}
2 2  ## ===== 学校ページ テンプレート =====
3 -## ページタイトルを学校名に設定({{html}}ブロックの前で実行する必要あり)
4 -#set($__titleObj = $doc.getObject('SeitokaiCode.SchoolClass'))
5 -#if($__titleObj)
6 - #set($__titleName = $__titleObj.getValue('schoolName'))
7 - #if($__titleName && $__titleName != '')
8 - $doc.setTitle($__titleName)
9 - #end
10 -#end
11 11  {{html clean="false"}}
12 12  ## メンテナンスバナー({{include}}ではなくインラインで記述し、<p>タグ挿入を回避)
13 13  #set($bannerDoc = $xwiki.getDocument('SeitokaiAdmin.MaintenanceBanner'))
... ... @@ -1020,6 +1020,10 @@
1020 1020  }
1021 1021  // ページ読み込み時の初期化
1022 1022  document.addEventListener('DOMContentLoaded', function() {
1015 + // ページタイトルを学校名に置換(デフォルトでは学校コードが表示されるため)
1016 + var titleEl = document.querySelector('#document-title h1');
1017 + var schoolNameVal = "$!escapetool.javascript($!schoolName)";
1018 + if (titleEl && schoolNameVal) { titleEl.textContent = schoolNameVal; }
1023 1023   // デフォルトで現在の年度を表示
1024 1024   var defaultTab = document.querySelector('.activity-fy-tab.active');
1025 1025   if (defaultTab) { defaultTab.click(); }