4 - The Working EnvironmentThree forms comprise the web-end of wtfm. One manages global styles; one manages projects; and one manages pages within projects. In addition, the system generates lists of pages and projects when you ask it to that can be used to select a page or project to work on. 4.1 - Global and Local4.1.1 - GlobalWhen I say something is global, I mean that it will be available in any page, as long as it has been previously defined. Project globals and the Global styles both are processed before any pages are processed, and the local styles section on the Edit Page form is processed before the page content is. 4.1.2 - LocalWhen I say something is local, I mean that it will only affect, exist within, or be accessible from the page where it has been defined. 4.1.3 - Locals in Global ContextsHere's a key idea: While defining a local in a global area for later use accomplishes nothing, one thing to keep in mind about styles (all types of styles) is that they are not processed at all until they are actually used. For this reason, the style itself can define locals and use them, and have other styles use the results of this, on the specific page(s) where the style is used. 4.1.4 - Processing OrderGlobal styles are processed first; Project styles next; then Local styles; then the page content. This order rarely matters with regard to styles, but when you're setting global variables, if one global variable includes the content of another global variable, make sure they are defined before they are used. The same rule applies on individual pages: If a variable includes content from another variable, that content must be defined before it is used. Never define styles within Page Content. Use the Page Locals area for this purpose.
Keyboard Navigation
, Previous Page . Next Page t TOC i Index |