introduction to bricolage - · pdf file• the bricolage home page

Post on 07-Feb-2018

257 Views

Category:

Documents

11 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Copyright © 2003 Kineticode, Inc.

David WheelerKineticode

david@kineticode.com

Introduction to Bricolage

Copyright © 2003 Kineticode, Inc.

• 4,000 documents

• Over 100 departments & users

• Published in English, Spanish, and French

• http://www.who.int/

World Health Organization

Copyright © 2003 Kineticode, Inc.

• 30,000+ documents

• MacCentral updated continually

• www.macworld.com

• www.maccentral.com

Mac Publishing

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

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

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

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

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

Copyright © 2003 Kineticode, Inc.

• Document analysis

• Document type definition

• Templating

• Document editing

An Introduction

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

Copyright © 2003 Kineticode, Inc.

• Analyze existing documents

• Break them down into component parts

• Subelements

• Fields

• Model the structure

Document Analysis

Copyright © 2003 Kineticode, Inc.

Review

Copyright © 2003 Kineticode, Inc.

Review

Top Image

Short Teaser

Byline

Title

Page

BookProfile

MovieProfile

Copyright © 2003 Kineticode, Inc.

Page

Paragraphs

Header

Next Text

Related Media

Caption

Pull Quote

Paragraph

Copyright © 2003 Kineticode, Inc.

Page

Position:Right

Position:Left

Paragraphs

Header

Header

Paragraphs

Related Media

Related Media

Caption

Caption

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

Copyright © 2003 Kineticode, Inc.

Element Demo

Copyright © 2003 Kineticode, Inc.

Templating• Based on Perl templating systems

• Current templating systems

• Mason

• HTML::Template

• Promised templating systems

• Template Toolkit

• XSLT

• Contribute one!

Copyright © 2003 Kineticode, Inc.

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

• Contain three important global objects• $story

• $burner

• $element

Copyright © 2003 Kineticode, Inc.

• Bricolage story object

• Access primary story properties

• Title

• Description

• URI

• Keywords

• Contributors

$story Global

Copyright © 2003 Kineticode, Inc.

$story Example

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

Copyright © 2003 Kineticode, Inc.

$burner Example

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

Copyright © 2003 Kineticode, Inc.

$element Example

Copyright © 2003 Kineticode, Inc.

• Category Templates

• Element Templates

• Utility Templates

Three Template Types

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

Copyright © 2003 Kineticode, Inc.

Category Template Example

Copyright © 2003 Kineticode, Inc.

Category Template Execution

/

/reviews

/reviews/books

Find review.mc

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

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

Copyright © 2003 Kineticode, Inc.

Element Template Example

Copyright © 2003 Kineticode, Inc.

Element Template Execution

/reviews/books/review.mc

/reviews/review.mc

/review.mc

Copyright © 2003 Kineticode, Inc.

• Ordinary Mason components

• Executed as standard template architecture components

• Used for utility processing common across elements

Utility Templates

Copyright © 2003 Kineticode, Inc.

Utility Template ExampleImage formatting template

Copyright © 2003 Kineticode, Inc.

Template Demo

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

Copyright © 2003 Kineticode, Inc.

Story Demo

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

top related