{% extends '../layout/admin.html' %} {% block html_title %}カスタマイズ · {% endblock %} {% block html_additional_headers %} {% endblock %} {% block layout_header %}
{% endblock %} {% block content_main %}
{% set smessage = req.flash('successMessage') %} {% if smessage.length %}
{{ smessage }}
{% endif %} {% set emessage = req.flash('errorMessage') %} {% if emessage.length %}
{{ emessage }}
{% endif %}
{% include './widget/menu.html' with {current: 'customize'} %}
挙動

Official Crowi Behavior

  • /page shows the page
  • /page/ shows the list of sub pages
    • If portal is applied to /page/ , the portal and the list of sub pages are shown
  • /nonexistent_page shows editing form
  • /nonexistent_page/ the list of sub pages

crowi-plus Simplified Behavior (Recommended)

  • Both of /page and /page/ shows the same page
  • /nonexistent_page shows editing form
  • All pages shows the list of sub pages when using crowi-plus Enhanced Layout
レイアウト

Official Crowi Classic Layout

  • Functional
    • Collapsible Sidebar
    • Show and post comments in Sidebar
    • Collapsible Table-of-contents

crowi-plus Enhanced Layout (Recommended)

  • Simple and Clear
    • Show and post comments from the bottom of the page
    • Affix Table-of-contents
機能

機能の有効/無効を選択できます。

配下ページのタイムラインを表示できます。

配下ページが多い場合はページロード時のパフォーマンスが落ちます。
無効化することでリストページの表示を高速化できます。

編集タブやヒストリータブ等の切り替えをブラウザ履歴に保存し、ブラウザの戻る/進む操作の対象にします。
無効化することで、ページ遷移のみを戻る/進む操作の対象にすることができます。

カスタムヘッダーHTML

システム全体に適用される HTML を記述できます。<header> タグ内の他の <script> タグ読み込み前に展開されます。
変更の反映はページの更新が必要です。

Examples:

<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/languages/yaml.min.js" defer><script>

Ctrl+Space でコード補完

カスタムヘッダーCSS

システム全体に適用されるCSSを記述できます。<header> タグ内に展開されます。
変更の反映はページの更新が必要です。

Ctrl+Space でコード補完

カスタムスクリプト

システム全体に適用されるJavaScriptを記述できます。<body> タグ内の最後に展開されます。
変更の反映はページの更新が必要です。

Placeholders:
(Available after load event)

$
jQuery instance
crowi
Crowi context instance
Crowi
Crowi legacy instance (jQuery based)
crowiRenderer
Crowi Renderer instance
crowiPlugin
crowi-plus plugin manager instance

Examples:

console.log($('.main-container'));

window.addEventListener('load', (event) => {
  console.log('config: ', crowi.config);
});

Ctrl+Space でコード補完

{% endblock content_main %} {% block content_footer %} {% endblock content_footer %}