Skip to content

System Settings

Main

SettingDescription
pageblocks_tab_indexPosition of the PageBlocks tab in the resource editing interface. Default: 0
pageblocks_hide_templatesComma-separated list of template IDs where the PageBlocks tab will be hidden. Default: (empty)
pageblocks_hide_parentsComma-separated list of parent resource IDs where the PageBlocks tab will be hidden. Default: (empty)
pageblocks_hide_resourcesComma-separated list of resource IDs where the PageBlocks tab will be hidden. Default: (empty)
pageblocks_hide_usersComma-separated list of user IDs who will not see the PageBlocks tab. Default: (empty)
pageblocks_hide_user_groupsComma-separated list of user groups for which the PageBlocks tab will be hidden. Default: (empty)
pageblocks_routingEnables routing functionality. Options: Disabled, Route Only, Full API. Default: Disabled
pageblocks_development_modeComponent operation mode. Options: Manager, Developer. Default: Manager
pageblocks_enable_historyEnables object versioning (history). Default: true
pageblocks_load_scriptsEnables loading of scripts on the frontend. Default: true

Parser

SettingDescription
pageblocks_elements_pathPath to file-based elements. Default: {core_path}App/elements/
pageblocks_fenom_auto_reloadAutomatically rebuild the template cache when the template changes (may reduce performance). Default: false
pageblocks_file_elements_onlyRestricts the Fenom parser to file-based templates only. Disables database-stored chunks and snippets. Default: false

Block

SettingDescription
pageblocks_block_groupsComma-separated list of block group names for organizing blocks. Default: (empty)
SettingDescription
pageblocks_source_pathDefault file storage path for media fields. Default: assets/images/
pageblocks_remove_fileWhen a file is deleted, also removes it from the file system. Default: false

Grid

SettingDescription
pageblocks_grid_statefulRemembers column widths in the admin grid. Default: true

Translate

SettingDescription
pageblocks_context_awareEnables language/context selection. Default: false
pageblocks_contextsJSON-formatted list of contexts (e.g., [{"key":"web","value":"Website"}]). Default: [{"key":"web","value":"Website"}]
pageblocks_context_fallbackDefines what to do if a translation is missing. Options: redirect, 404, default. Default: default
pageblocks_translatorTranslator for automatic translations. Options: ChatGPT, DeepL, DeepLGPT. Default: (empty)
pageblocks_translate_resource_fieldsComma-separated list of resource fields to auto-translate. Can include custom PageBlocks fields. Default: pagetitle,longtitle,description,introtext,content,menutitle

ChatGPT

SettingDescription
pageblocks_chatgpt_apikeyChatGPT API key. Default: (empty)
pageblocks_chatgpt_modelChatGPT model name. Default: gpt-4o
pageblocks_chatgpt_promptPrompt template for translation. Default: Translate the following text from [[+from]] to [[+to]] and provide only the translation:

DeepL

SettingDescription
pageblocks_deepl_apikeyDeepL API key. Default: (empty)
pageblocks_deepl_accountDeepL account type: free or pro. Default: free
pageblocks_deepl_free_urlAPI endpoint for free DeepL accounts. Default: https://api-free.deepl.com/v2/
pageblocks_deepl_pro_urlAPI endpoint for Pro DeepL accounts. Default: https://api.deepl.com/v2/
pageblocks_deepl_word_countIf word count exceeds this value, ChatGPT will be used instead of DeepL. Default: 3

AI

SettingDescription
pageblocks_ai_fakeAdds a button to auto-generate fake content for object fields using AI. Default: false

Field

SettingDescription
pageblocks_combo_field_modelsComma-separated list of models used in field dropdowns. Default: modUser,modUserGroup,modResource,modTemplate,modChunk,modSnippet,modCategory,modContext

Map

SettingDescription
pageblocks_map_typeMap type to use. Options: Leaflet, Yandex. Default: Leaflet
pageblocks_yandex_apikeyAPI key for Yandex Maps. Default: (empty)

© PageBlocks 2019-present