{% extends '../layout/admin.html' %} {% block html_title %}{{ t('Customize') }} {% endblock %} {% block html_additional_headers %} {% endblock %} {% block content_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'} %}
{{ t('customize_page.Behavior') }}

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
{{ t('customize_page.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
{{ t('customize_page.Function') }}

{{ t("customize_page.function_choose") }}

{{ t("customize_page.subpage_display") }}

{{ t("customize_page.performance_decrease") }}
{{ t("customize_page.list_page_display") }}

{{ t("customize_page.save_edit") }}
{{ t("customize_page.by_invalidating") }}

カスタムヘッダー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 でコード補完

{{ t('customize_page.Custom CSS') }}

{{ t("customize_page.write_CSS") }}
{{ t("customize_page.reflect_change") }}

{{ t("customize_page.ctrl_space") }}

{{ t('customize_page.Custom script') }}

{{ t("customize_page.write_java") }}
{{ t("customize_page.reflect_change") }}

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);
});

{{ t("customize_page.ctrl_space") }}

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