Top Banner
Welcome Tim Klein [email protected] Making websites with SilverStripe in no time
35

Tim Klein's talk on making websites with SilverStripe in no time

Jan 28, 2015

Download

Documents

JoannaTMcLeod

On February 16, 2010, Tim Klein spoke at a SilverStripe meetup in Wellington. These are his slides.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Tim Klein's talk on making websites with SilverStripe in no time

Welcome

Tim [email protected]

Making websites with SilverStripe in no time

Page 2: Tim Klein's talk on making websites with SilverStripe in no time

Web Design

Page 3: Tim Klein's talk on making websites with SilverStripe in no time

Web design

● Most designs are based on a grid● Grid designs have been around for a long time● Eg: Newspapers use them

● Common grids are 12 or 16 columns

Page 4: Tim Klein's talk on making websites with SilverStripe in no time

CSS Frameworks

Page 5: Tim Klein's talk on making websites with SilverStripe in no time

CSS Frameworks

● CSS Framework != CSS Framework● Many different types address many different

problems:● Mainly: Saving Your Time!

Page 6: Tim Klein's talk on making websites with SilverStripe in no time

Reset.css

● Resets all major browsers to a consistent default style

● YUI Reset CSS is one of the most popular● http://developer.yahoo.com/yui/reset/

● Strongly recommend the usage!

Page 7: Tim Klein's talk on making websites with SilverStripe in no time

Grid Frameworks

● Help to 'layout' the content on a site● Can be fixed width or fluid● Many around:

● Blueprint - http://blueprintcss.org/● YAML - http://www.yaml.de/en/

● My favourite: ● 960.gs – http://960.gs/

Page 8: Tim Klein's talk on making websites with SilverStripe in no time

960gs

Page 9: Tim Klein's talk on making websites with SilverStripe in no time

960gs

<div class=”container_12”>

<div class=”grid_12”>

Header

</div>

<div class=”clear”></div>

<div class=”grid_8 suffix_1”>

Main content

</div>

<div class=”grid_3”>

Sidebar

</div>

<div class=”clear”></div>

</div>

Header

Main content Sidebar

Page 10: Tim Klein's talk on making websites with SilverStripe in no time

Style Languages / Interpreters

● Add functionality to CSS● Need server side interpreter or Javascript

(LESS)● SASS (Syntactically Awesome Stylesheets)

● Comes with HAML for Ruby● Plugins available for most editors● Phamlp is a port to PHP:

http://code.google.com/p/phamlp/

Page 11: Tim Klein's talk on making websites with SilverStripe in no time

SASS Example

$blue: #3bbfce;

$margin: 16px;

.content-navigation {

border-color: $blue;

color: darken($blue, 9%);

}

.border {

padding: $margin / 2;

margin: $margin / 2;

border-color: $blue;

}

Page 12: Tim Klein's talk on making websites with SilverStripe in no time

Designs and Reality

Page 13: Tim Klein's talk on making websites with SilverStripe in no time

Grid Designs and CMS'

● Most CMS' offer these content fields:● A title● Wysiwyg content

Logo

Navigation

HeadingLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eufugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Footer

Sidebar

Page 14: Tim Klein's talk on making websites with SilverStripe in no time

Grid Designs and CMS'

● While designs often require more:● Content blocks● Dynamic areas● Interactive content

Logo

Navigation

HeadingLorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam

Footer

Search

Sub navigation

Slideshow

IntrotextLorem ipsum dolor sit Amet, consectetur adipisicing elit,sed do eiusmod tempor

A Video

DescriptionBla

Latest News● One Article● Another Article● ...● ...

Follow us on twitter

Read our RSS Feed

Become a friend on facebook

Bookmark us

Copyright

Special

Slogan

Tagline

Page 15: Tim Klein's talk on making websites with SilverStripe in no time

Page Elements

● My requirements● Easy to use● Seemless integration into SilverStripe● Easy to extend● xhtml compliant● Lightweight● Quick and easy layout creation● No PHP knowledge required

Page 16: Tim Klein's talk on making websites with SilverStripe in no time

● Insert placeholders in the template file● Eg: $Slot(Header)

● Populate these areas through the CMS● Elements are decendants of DataObject● Can store / output anything you like

More info

http://www.page-elements.com/

Page Elements

Page 17: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 18: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

● Setting up bug tracker and SVN Repository● We use Redmine

● http://www.redmine.org/

Page 19: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 20: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 21: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

● Set up ● SilverStripe

– Page Elements externals● Database● New theme directory

● Open new site in Editor

Page 22: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

● Analysing the design visuals for● Functionality● Layout

Page 23: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 24: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 25: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Grid_4Left

Grid_12Header

Grid_4Right

Grid_4Middle

Page 26: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 27: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 28: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 29: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 30: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 31: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 32: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

● Commiting to svn● Site set up on server● Tweaks / fixes● Sign Off

Page 33: Tim Klein's talk on making websites with SilverStripe in no time

Step by step

Page 34: Tim Klein's talk on making websites with SilverStripe in no time

Questions?

Page 35: Tim Klein's talk on making websites with SilverStripe in no time

Thank you!

[email protected]