NucleusCMS-アイテムの追加・編集画面サイズ等の修正
OS:debian11
NucleusCMS-3.8dev
ブラウザー:
Firefox ver115.3.1esr (64 ビット)
Google Chrome ver 117.0.5938.149(Official Build)(64 ビット)
パソコンでアイテムの追加や編集をクリックするとwindowサイズが全画面の9割で表示される。
大画面ディスプレーではtexetareaも必要以上に大きいので適度な大きさで開くように修正する。
修正ファイル:
yourcms/nucleus/libs/ITEMACTIONS.php
yourcms/nucleus/libs/include/bookmarklet-add.template
yourcms/nucleus/libs/include/bookmarklet-edit.template
1)windowサイズの修正
アイテムの編集
ITEMACTIONS.phpの599行目:
public function parse_editpopupcode()内の
width='+window.parent.screen.width*0.9を
width='+window.parent.screen.width*0.6に変更。
2)<textareaのサイズ修正
修正ファイル:
yourcms/nucleus/libs/include/bookmarklet-add.template
yourcms/nucleus/libs/include/bookmarklet-edit.template
アイテムの追加
bookmarklet-add.templateの<textarea にstyle="width:サイズ"を挿入する。
<textarea {%jsinput(body)%} style="width:500px; height:250px;" cols="80px" rows="20px" tabindex="20">{%contents(body)%}</textarea>
アイテムの編集
bookmarklet-edit.templateの<textarea にstyle="width:サイズ"を挿入する。
textarea にstyle="サイズを挿入する。
<textarea {%jsinput(body)%} style="width:500px; height:250px;" cols="80px" rows="20px" tabindex="20">{%contents(body)%}</textarea>