Changes for page 学校ページ テンプレート
Last modified by Super Admin on 2026/04/05 18:59
From version
37.1
edited by Super Admin
on 2026/03/10 14:41
on 2026/03/10 14:41
Change comment:
There is no comment for this version
To 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
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +1,13 @@ 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 3 3 {{html clean="false"}} 4 4 ## メンテナンスバナー({{include}}ではなくインラインで記述し、<p>タグ挿入を回避) 5 5 #set($bannerDoc = $xwiki.getDocument('SeitokaiAdmin.MaintenanceBanner')) ... ... @@ -224,12 +224,6 @@ 224 224 #end 225 225 #end 226 226 227 -## --- 学校名見出し(XWikiデフォルトタイトルを非表示にし、学校名を表示) --- 228 -#if($schoolName && $schoolName != '') 229 -<style>#document-title { display: none; }</style> 230 -<h1 class="school-page-title">$!escapetool.xml($schoolName)</h1> 231 -#end 232 - 233 233 ## --- 編集ボタン(権限があるユーザーのみ表示) --- 234 234 #set($canEditSchool = false) 235 235 #if(!$isGuest && ($isViewerAdmin || $viewerSchoolCode == $schoolCode))