Skip to content

Boshnik/Boilerplate

Repository files navigation

Boilerplate

Basic Website Configuration

List of installable components (optional during installation)

  • ClientConfig (site configuration)
  • FormIt (processing forms, sending requests to e-mail)
  • TinyMCE Rich Text Editor (visual editor)
  • translit (automatic transliteration of page addresses)
  • SEO Suite (page setup for search engines)

MODSTORE.PRO

  • Ace (code editor)
  • autoRedirector (redirect old url)
  • controlErrorLog (error log management)
  • ModxMinify (automated compression of scripts and site styles)
  • pThumb (to resize and compress an image)
  • pdoTools (fast selection of site pages and users)
  • SocialNetworks (social networks)

Resources

  • Home
  • Service pages
    • 403 (error page 403 "Access Denied")
    • 404 (error page 404 "Document not found")
    • 503 (unavailable page)
    • Site map (HTML)
    • SiteMap (sitemap.xml)
    • Privacy Policy

Chunks

  • head
  • header
  • breadcrumbs
  • footer

Snippets

  • csrf (CSRF TOKEN)
  • babelGetId

Plugins

  • Boilerplate
    • binds a CSS file to the resource editing page (assets/boilerplate/mgr/manager.css)
    • compresses html output for Google (can be overridden in the boilerplate_compress_output_html system settings)
    • the ability to hide the vertical tab for TV (boilerplate_hide_vtabs_tv system setting)
    • prohibits uploading files to the root directory (OnFileManagerUpload event)
    • context switching (OnMODXInit event)

System settings

CORE

Key Value Description
allow_multiple_emails no so that each user has their own email address
friendly_alias_realtime yes real-time alias generation
friendly_urls yes enabling friendly URLs
friendly_urls_strict yes strict regime
publish_default yes by default, the resource is created published
use_alias_path yes so that the URL considers the parent's alias, not its frozen URL
resource_tree_node_tooltip alias so you can figure out what the address of the resource is
locale en_US.utf8 locale setting
request_method_strict yes disabling page access by id
unauthorized_page id 403 ID of the 403 page
error_page id 404 ID of the 404 page
error_page_header HTTP/1.0 404 Not Found header for a 404 error
site_unavailable_page id 503 ID of the 503 page
log_deprecated no deprecated functions in the error log

PDOTOOLS

Key Value Description
pdotools_fenom_default yes use of Fenom in chunks
pdotools_fenom_modx yes enable MODX in Fenom
pdotools_fenom_parser yes use of Fenom on pages
pdotools_elements_path {core_path}/ to load file elements

TINYMCERTE

Key Value Description
tinymcerte.plugins advlist autolink lists modximage charmap print preview anchor visualblocks searchreplace code fullscreen insertdatetime media table contextmenu paste modxlink textcolor colorpicker template Plugins
tinymcerte.toolbar1 undo redo | styleselect | backcolor forecolor bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | template Toolbar 1
tinymcerte.external_config {assets_path}components/tinymcerte/js/external-config.json External config

BOILERPLATE

Key Value Description
boilerplate_compress_output_html yes compresses html output for Google
boilerplate_hide_vtabs_tv no hides the vertical tab for tv
boilerplate_menu_description no hides component descriptions in the menu

Other

  • Setting HTTP Headers
    • X-Frame-Options:deny
    • X-XSS-Protection:1;mode=block
    • X-Content-Type-Options:nosniff
    • Referrer-Policy:no-referrer
    • Cache-Control: max-age=31536000, must-revalidate
  • The changelog.txt file is removed to eliminate the message indicating that the site's security is not in order.
  • Files named ht.access in the root and in the /core/ folder are renamed to enable friendly URLs.
  • Changing the content of the base template

About

Базовая настройка сайта.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published