Thursday, January 9, 2014 at 1:02 PM

The pagetable

The pagetable is a central concept in Fargo content management. It's a JavaScript object that accumulates data about the page through the various steps of the rendering process.

Here's a list of all the things that go into the pagetable.

  • Default values put there by the CMS code at the beginning of the rendering process.

  • All the # directives in a super-global object that I created (this is where the built-in templates come from).

  • All the # directives in your global preference outline called cmsPrefs.opml.

  • All the attributes from all the headlines on the path to the headline being rendered.

  • All the # directives on the path to the headline being rendered.

The order above is important because values in the pagetable can be overridden. So if you want to change a default that's the global object, just put a different value for it in your cmsPrefs.opml file.

The pagetable is included in the rendered page in the default templates so it is available to JavaScript code running in the page.

Last built: Tue, Dec 9, 2014 at 3:29 PM

By Dave Winer, Thursday, January 9, 2014 at 1:02 PM. So, it has come to this.