User Tools

Site Tools


backdrop:theme_devel:start

This is an old revision of the document!


Backdrop CMS Theme Developers' Guide

This wiki is a work in progress. We are attempting to build a Theme Developers' Guide for Backdrop CMS.

Editor's note, for subsequent removal:
Below is a highly preliminary rough sketch outline which is offered for consideration. As the initial author, these are the topics which would lead me to a better understanding of
- Why I need to do certain things
- What I need to do, and
- How to do it: where to put which programming information.

These headings should all be broken out into individual pages, so this page will eventually be reduced to a list of links to the subsequent pages. For now, here they are:


The Big Picture - How Backdrop proceeds to Paint the Page

Where the Page Info comes from

Sequence of PHP processing

Layouts vs. Themes

What a Theme can't do (or shouldn't attempt)

What a Theme can (and should) do

CSS: When and Where the CSS enters the Picture

The Primary Means

  • How CSS is communicated to the browser by the theme

Injecting Custom CSS

  • Auxiliary methods of sending conditional CSS

PHP: Preprocessing the Page Output

  • Why do we want to do this?
  • How, and where, is it accomplished?

Using the Color Module

Using Config for Themes

Best Practices

Directory Structure

What PHP should be put where

Discussion

Eric Foy, 2023/12/12 19:04, 2023/12/12 19:08

Note that at the head (first line) of all the pages below this one (the destinations of the links on this page) is a page-weight tag that looks like '{ { indexmenu_n>1 } }'.

This is to make the sidebar menu sort in the desired order.

Enter your comment. Wiki syntax is allowed:
 
backdrop/theme_devel/start.1701596776.txt.gz · Last modified: 2023/12/03 04:46 by ericfoy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki