RPI Computer Science
LabstaffWeb > RpiTwiki > MoveableTypeSkin
Foswiki webs: Main | System | Sandbox   Login or Register
Changes | Index | Search | Go

URLs

MoveableTypeSkin Contrib Package

The Moveable Type style repository was set up in early 2006 to capture the best designs for bl ogs built using Moveable Type. Designers were required to implement their designs using a [[http://styles.movabletype.org/help/sty lesheet_reference/][standard set of styles]], and their work could be demonstrated using some [[http://styles.movabletype.org/help /sample_files/][sample HTML layouts]]. The competition yielded some delightful designs; for example,

Screenshot

MoveableTypeSkin is a simple TWiki Skin that re-uses these style and HTML definitions, so making designs done for Moveable Type availa ble to TWiki sites.

Aside from the ability to re-use these designs, there are several other advantages to this skin:
  1. Its very lightweight, only generating the bare minimum html required to implement the Moveable type classes and IDs. This mea
ns it is fast, portable and easy to upgrade.
  1. The CSS is totally independent of TWiki, so any stylesheet you develop for this skin will work with all versions of TWiki that support the skin,
  2. This also means the same CSS can be shared with other applications (such as SixApart based blogs).
  3. The skin reuses TWiki's base templates for most of the TWiki-specific bits, so when those base templates are extended any *ne
w functionality will automatically become available* for your use.

You can preview some design ideas at the the Moveable Type style library. To use one of these designs with TWiki, you will need to install the skin, and then download and install the theme as per the Cust omisation instructions, below. Some designs are not suitable for re-use with TWiki, as they make assumptions about the number of p ixels that the text is long, but you should be able to get inspiration from these works anyway.

Alternatively you can visit Sven's personal Blog for a DEMO.

MoveableTypeSkin is a WikiRing partner production.

Theme Browser

You can use this browser to mix and match layouts with various CSS files that are available without download from the [[http://www .sixapart.com/][Six Apart]] website. Use the navigation buttons to select between CSS options. Click on the theme name to see the CSS.

Choose CSS: [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?skin=moveabletype;moveabletypetopic=MoveableTypeSampleDesign;cssfile=http://www.sixapart.com/movabletype/styles/classic/theme-bonjour_chatette/theme-bonjour_chatette.css;up to=182#CssBrowser][go_back]] MoveableTypeSample2Design [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?skin=moveabletype;moveabletypetopic=MoveableTypeSampleDesign;cssfile=http://www.cs.rpi.edu/foswiki/pub/System/MoveableTypeSampleDesign/theme.css;upto=% NEXTCSS%#CssBrowser][go_forward]]

Choose column layout: [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?moveabletypecolumns=one-column;skin=moveabletype;moveabletypetopic=%URLPARAM{"moveabletypetopic" default="%MOVEABLETYPESKIN_DESIGNT;cssfile=http://www.cs.rpi.edu/foswiki/pub/System/MoveableTypeSample2Design/theme.css;upto=148][one colum n]], [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?moveabletypecolumns=two-column-left;skin=moveabletype;moveabletypetopic=%URLPARAM{"moveabletypetopic" default="%MOVEABLETYPESKIN_DESIGNT;cssfile=http://www.cs.rpi.edu/foswiki/pub/System/MoveableTypeSample2Design/theme.css;upto=148][two column left]], [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?moveabletypecolumns=two-column-right;skin=moveabletype;moveabletypetopic=%URLPARAM{"moveabletypetopic" default="%MOVEABLETYPESKIN_DESIGNT;cssfile=http://www.cs.rpi.edu/foswiki/pub/System/MoveableTypeSample2Design/theme.css;upto=148][two column right]], [[http://www.cs.rpi.edu/foswiki/bin/view/LabstaffWeb/MoveableTypeSkin?moveabletypecolumns=three-column;skin=moveabletype;moveabletypetopic=%URLPARAM{"moveabletypetopic" default="%MOVEABLETYPESKIN_DESIGNT;cssfile=http://www.cs.rpi.edu/foswiki/pub/System/MoveableTypeSample2Design/theme.css;upto=148][three c olumn]]

View the Moveable Type equivalent: one column, two column left, two column right, three column

Settings

Once you have chosen your CSS and layout, you must tell TWiki to use those options. If you have used the Theme Browser to select y our preferred setup, you can simply copy and paste the following section to your SitePreferences topic (or WebPrefere nces, or your personal topic)

There are static text sections in the MoveableType css that can be customised by editing the named sections on the System.Mov eableTypeSampleDesign topic - each section can be re-defined either inline, or using INCLUDEs.

Skin variables

If you set PAGETOPIC in your preferences or in your topic, it will be used as the page's HTML title, in preference to the topic name. This is useful for creating user-friendly titles for AUTOINC-named topics

Customisation

Customisation of this skin to create your own look and feel is very straightforward. You only have to develop (or re-use) a CSS fi le. You can also customise the text section definition and the TWiki.css for even greater control over the rendering, but this is not necessary for most applications.

The fastest way to develop your own CSS is to use the Movable Type Style generator. Alte rnatively you can adapt one an existing CSS from the web (though please be careful to respect author copyright). There is document ation for the required set of CSS classes and tags found at [[http://www.thestylearchive.com/help/stylesheet_reference][Stylesheet Reference]] and other related pages.

Once you have a CSS that you want to use, simply upload it to a TWiki topic and point the MOVEABLETYPESKIN_CSSFILE setting at it.

For more radical customisations you will want to create your own design topic. This is a topic in the LabstaffWeb web that documents t he design, and also defines the common text sections (you can customise these for even more control over layout). To create a de sign topic:
  1. Copy the text from MoveableTypeSampleDesign topic and paste it t
o YourMoveableTypeDesign (or another name of your choosing).
  1. Copy the MoveableTypeSampleDesign attachments TWiki.css and base-weblog.css to your new topic (save the files locally, an
d then upload them again to your new topic)
  1. Attach your custom CSS and imagefiles to your new topic.
  2. Edit your new topic and modify the MOVEABLETYPESKIN_CSSFILE setting to reflect the name of your CSS file. You should now be a
ble to proof your design from that topic.

Optionally you can also customise the TWiki.css attached to your design topic. This file contains most TWiki specific styles, such as tables, forms and diffs.

Finally you can also customise the common text sections in your design by editing the Moveable Type Common Text sections. There are two sample design topics , MoveableTypeSampleDesign and MoveableTypeSample2Design.

Once you are done, you will be able to follow the instructions under 'Enable this design' in your design topic to roll out your de sign.

Skin URL Parameters for testing skin designs

  • skin - must be set to moveabletype
  • cssfile - the url to the moveabletype css file you want to view
  • twikicssfile - the url to the TWiki.css file
  • moveabletypetopic - the topic (in the System only) that the moveabletype common sections come from
  • moveabletypecolumns - column setting (one-column, two-column-left, two-column-right, three-column)

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server where TWiki is running.

Like many other TWiki extensions, this module is shipped with a fully automatic installer script written using the BuildContr ib.
  • If you have TWiki 4.1 or later, you can install from the configure interface (Go to Plugins->Find More Extensions)
    • The webserver user has to have permission to write to all areas of your installation for this to work.
  • If you have a permanent connection to the internet, you are recommended to use the automatic installer script
    • Just download the MoveableTypeSkin_installer perl script and run it.
  • Notes:
    • The installer script will:
      • Automatically resolve dependencies,
      • Copy files into the right places in your local install (even if you have renamed data directories),
      • check in new versions of any installed files that have existing RCS histories files in your existing install (such as t
opics).
      • If the $TWIKI_PACKAGES environment variable is set to point to a directory, the installer will try to get archives from there. Otherwise it will try to download from twiki.org or cpan.org, as appropriate.
      • (Developers only: the script will look for twikiplugins/MoveableTypeSkin/MoveableTypeSkin.tgz before downloading from T
Wiki.org)
    • If you don't have a permanent connection, you can still use the automatic installer, by downloading all required TWiki arc
hives to a local directory.
      • Point the environment variable $TWIKI_PACKAGES to this directory, and the installer script will look there first for
required TWiki packages.
  • If you don't want to use the installer script, or have problems on your platform (e.g. you don't have Perl 5.8), then you can still install manually:
    1. Download and unpack one of the .zip or .tgz archives to a temporary directory.
    2. Manually copy the contents across to the relevant places in your TWiki installation.
    3. Check in any installed files that have existing ,v files in your existing install (take care not to lock the files whe
n you check in)
    1. Manually edit LocalSite.cfg to set any configuration variables.
    2. Run configure and enable the module, if it is a plugin.
    3. Repeat from step 1 for any missing dependencies.

Note if you are installing this extension in TWiki version < 4.2, please add these definitions to your Main.WebPreference s, if they are not already there:
  • Set SYSTEMWEB = %TWIKIWEB%
  • Set USERSWEB = %MAINWEB%

Interesting URLS

Contrib Info

This skin is an example of how to make a TWikiSkin without duplicating the work of the TWiki Core release. It reuses the default skin, and only adds a twiki.moveabletype.tmpl (and a viewprint that I hope to remove later), and only defines the bare essentia ls to create HTML that is similar to an existing system.

You can use this technique to create a TWikiSkin that matches closely the HTML of your existing web site, and thus re-use the exis ting site's css styling, thus creating a comon look & feel.

| Contrib Author: | TWiki:Main.SvenDowideit - SvenDowideit@DistributedINFORMATION.com [[http://DistributedINFORMATION.com][Distri butedINFORMATION]] - a WikiRing.com partner | | Copyright ©: | SixApart and designs by various, and twiki adaption by TWiki:Main.SvenDowideit - SvenDowideit@DistributedIN FORMATION.com |
License: Various Open Source
| Description: | a TWiki skin based on the HTML used by The Style Archive and [[http://www.si xapart.com/movabletype/styles/library][The Six Apart style library]] | | Screenshot: | <img src="http://www.cs.rpi.edu/foswiki/pub/LabstaffWeb/MoveableTypeSkin/screenshot.gif" alt="Click for full screen image" widt h="600" height="130" /> | | Screenshot: | <img src="http://www.cs.rpi.edu/foswiki/pub/LabstaffWeb/MoveableTypeSkin/preview_splattered_edit.gif" alt="Click for full screen image" width="600" height="130" /> | | Screenshot: | <img src="http://www.cs.rpi.edu/foswiki/pub/LabstaffWeb/MoveableTypeSkin/iconic_preview.gif" alt="Click for full screen image" widt h="600" height="130" /> |
Preview: Preview with this topic
Base Name: moveabletype
Skin Version: 03 Apr 2007 (v1.000)
Dependencies: None
Version: 15295 (15 Oct 2007)
Change History:  
15 Oct 2007: Doc rewrite - TWiki:Main.CrawfordCurrie
30 Mar 2007: initial release of Skin
Home: http://TWiki.org/cgi-bin/view/Plugins/MoveableTypeSkin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/MoveableTypeSkinDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/MoveableTypeSkinAppraisal

Related Topics: TWikiPreferences

-- TWiki:Main/SvenDowideit - 20 Dec 2014

%META:FILEATTACHMENT{name="skindemo.js" attachment="skindemo.js" attr="" comment="Saved by install script" date="1198097315" size= "2517" stream="GLOB(0x909d120)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="wikiringlogo20x20.png" attachment="wikiringlogo20x20.png" attr="" comment="Saved by install script" dat e="1198097315" size="1343" stream="GLOB(0x91ed854)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="screenshot.gif" attachment="screenshot.gif" attr="" comment="Saved by install script" date="1198097315" size="51501" stream="GLOB(0x91ed974)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="fullscreen.gif" attachment="fullscreen.gif" attr="" comment="Saved by install script" date="1198097314" size="124394" stream="GLOB(0x91bfdbc)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="iconic.gif" attachment="iconic.gif" attr="" comment="Saved by install script" date="1198097314" size="6 2240" stream="GLOB(0x91ec228)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="iconic_preview.gif" attachment="iconic_preview.gif" attr="" comment="Saved by install script" date="119 8097315" size="14466" stream="GLOB(0x91989a4)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="preview_splattered_edit.gif" attachment="preview_splattered_edit.gif" attr="" comment="Saved by install script" date="1198097315" size="20741" stream="GLOB(0x91edb18)" user="Main.TWikiAdminGroup" version="1"}% %META:FILEATTACHMENT{name="splattered_edit.gif" attachment="splattered_edit.gif" attr="" comment="Saved by install script" date="1 198097315" size="63867" stream="GLOB(0x91ec1d4)" user="Main.TWikiAdminGroup" version="1"}%

-- JoeyArmstrong - 19 Dec 2007

Parents: RpiTwiki
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback