Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
35.1
edited by Super Admin
on 2026/03/10 14:36
on 2026/03/10 14:36
Change comment:
There is no comment for this version
To version
38.1
edited by Super Admin
on 2026/03/10 14:46
on 2026/03/10 14:46
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -224,6 +224,12 @@ 224 224 #end 225 225 #end 226 226 227 +## --- 学校名見出し(XWikiデフォルトタイトルを非表示にし、学校名を表示) --- 228 +#if($schoolName && $schoolName != '') 229 +<style>.document-header { display: none !important; }</style> 230 +<h1 class="school-page-title">$!escapetool.xml($schoolName)</h1> 231 +#end 232 + 227 227 ## --- 編集ボタン(権限があるユーザーのみ表示) --- 228 228 #set($canEditSchool = false) 229 229 #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode)) ... ... @@ -1012,10 +1012,6 @@ 1012 1012 } 1013 1013 // ページ読み込み時の初期化 1014 1014 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; } 1019 1019 // デフォルトで現在の年度を表示 1020 1020 var defaultTab = document.querySelector('.activity-fy-tab.active'); 1021 1021 if (defaultTab) { defaultTab.click(); }