38
Copyright © 2003 Kineticode, Inc. David Wheeler Kineticode [email protected] Introduction to Bricolage

Introduction to Bricolage - · PDF file• The Bricolage home page

Embed Size (px)

Citation preview

Page 1: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

David WheelerKineticode

[email protected]

Introduction to Bricolage

Page 2: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• 4,000 documents

• Over 100 departments & users

• Published in English, Spanish, and French

• http://www.who.int/

World Health Organization

Page 3: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• 30,000+ documents

• MacCentral updated continually

• www.macworld.com

• www.maccentral.com

Mac Publishing

Page 4: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• 45,000+ Documents

• Millions of readers

• 30 new stories daily

• August 2003 launch

• www.theregister.co.uk

• www.theregister.com

The Register

Page 5: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• 15,000+ Stories

• 7!10 new stories daily

• 60!70 new images daily

• 50 new videos weekly

• August 2003 launch

• www.etonline.com

Entertainment Tonight

Page 6: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Lots of contributors

• Workflow not reflected in software

• Volumes of decentralized content

• Inconsistent data

• Inconsistent formatting

• Need to output to multiple formats

• Multiple destination servers

The Content Problem

Page 7: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Centralized document library

• Document design and management

• Document versioning and locking

• Browser!based interface

• Customizable workflow with permissions

• Multiple output channels

• Document distribution

• SOAP interface

Solution: Bricolage

Page 8: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Enterprise!class open!source CMS

• Written in Perl with a Mason!powered UI

• Perl!powered templating architectures

• Runs on any modern Unix system

• Runs on Apache 1.3.27

• Supports SSL

• PostgreSQL back!end

• Portable to other databases "patches welcome#

Architecture

Page 9: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Document analysis

• Document type definition

• Templating

• Document editing

An Introduction

Page 10: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Bricolage core technology

• Two kinds of documents: “Stories” & “Media”

• Documents defined by “Elements”

• Elements are hierarchically organized content containers

• Elements can contain Subelements and Fields

• Fields displayed as different HTML form fields

Document Types

Page 11: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Analyze existing documents

• Break them down into component parts

• Subelements

• Fields

• Model the structure

Document Analysis

Page 12: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Review

Page 13: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Review

Top Image

Short Teaser

Byline

Title

Page

BookProfile

MovieProfile

Page 14: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Page

Paragraphs

Header

Next Text

Related Media

Caption

Pull Quote

Paragraph

Page 15: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Page

Position:Right

Position:Left

Paragraphs

Header

Header

Paragraphs

Related Media

Related Media

Caption

Caption

Page 16: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Document Type Definition

ReviewTitleShort TeaserByline

Short Teaser

PageHeaderParagraphNext TextPrevious Text

(Related Media)

Book Profile Movie Profile

TitleAuthorPublisherPublish Date

TitleDirectorStarStudioRelease Date

Pull Quote

Paragraph

CaptionPosition

Related Media

Page 17: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Element Demo

Page 18: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Templating• Based on Perl templating systems

• Current templating systems

• Mason

• HTML::Template

• Promised templating systems

• Template Toolkit

• XSLT

• Contribute one!

Page 19: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Template Fundamentals• Templates are pure Mason or HTML::Template

• Contain three important global objects• $story

• $burner

• $element

Page 20: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Bricolage story object

• Access primary story properties

• Title

• Description

• URI

• Keywords

• Contributors

$story Global

Page 21: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

$story Example

Page 22: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Manages templating architecture and output

• Use similarly to Mason’s $m to output metadata

• Trigger element output

• Access relevant objects and data

• Output Channel

• Category

• Page file names

$burner Global

Page 23: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

$burner Example

Page 24: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Element for current template

• Most important templating object

• Contains content data

• Subelements

• Data elements "Fields#

• Element order

• Related media

• Related story

$element Global

Page 25: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

$element Example

Page 26: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Category Templates

• Element Templates

• Utility Templates

Three Template Types

Page 27: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Wrap execution of element templates

• Automatically executed when element templates executed

• Similar to Mason’s “autohandlers”

• Cascading execution down the category path

Category Templates

Page 28: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Category Template Example

Page 29: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Category Template Execution

/

/reviews

/reviews/books

Find review.mc

For “Review” story in /reviews/books category:

Page 30: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Correspond to a single document element

• Automatically located and executed by Burner

• Located by searching up the directory path

• Most templates of this type

Element Templates

Page 31: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Element Template Example

Page 32: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Element Template Execution

/reviews/books/review.mc

/reviews/review.mc

/review.mc

Page 33: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

• Ordinary Mason components

• Executed as standard template architecture components

• Used for utility processing common across elements

Utility Templates

Page 34: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Utility Template ExampleImage formatting template

Page 35: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Template Demo

Page 36: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Document Editing• Document structure adheres to definition

• Easy!to!use HTML forms

• Check!out/exclusive locking

• Check!in/version control

• Hierarchical content categorization

• Keyword association

• Contributor association

• Bulk editing

Page 37: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Story Demo

Page 38: Introduction to Bricolage -  · PDF file• The Bricolage home page

Copyright © 2003 Kineticode, Inc.

Where to Learn More• The Kineticode home page

http://kineticode.com/

• The Bricolage home pagehttp://bricolage.cc/

• The O’Reilly Mason Bookhttp://www.masonbook.com/

• eWeek Tech Analysishttp://www.eweek.com/article2/0,3959,652977,00.asp