Skip to content

Instantly share code, notes, and snippets.

@howtomakeaturn
Last active August 29, 2015 14:14
Show Gist options
  • Save howtomakeaturn/fd4be8e8a4eb730a719d to your computer and use it in GitHub Desktop.
Save howtomakeaturn/fd4be8e8a4eb730a719d to your computer and use it in GitHub Desktop.
October CMS notes

File-based or database-based?

October themes are completely file-based and can be managed with any version control system, for example Git.

October syntax

The template paths are always absolute. If in a partial you render another partial from the same subdirectory you still need to specify the subdirectory name.

Template structure

Pages, partials and layout templates can include up to 3 sections: configuration, PHP code, and Twig markup. Sections are separated with the == sequence.

File structure and url?

Subdirectories do not affect page URLs - the URL is defined only with the url parameter.

How to define page variables?

Page variables can be prepared by the page or layout PHP section or by Components.

建立pages ...

  • 直接建立一個.htm檔,沒問題。

  • 建一個資料夾,再進去建,就不會顯示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment