Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
36.1
edited by Super Admin
on 2026/03/10 14:40
on 2026/03/10 14:40
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
-
... ... @@ -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')) ... ... @@ -232,6 +232,12 @@ 232 232 #end 233 233 #end 234 234 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 + 235 235 ## --- 編集ボタン(権限があるユーザーのみ表示) --- 236 236 #set($canEditSchool = false) 237 237 #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode))