github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

byrnereese / mt-tool-exportts

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Tree: b9c561b

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A tool for Movable Type that allows you to easily export the templates in a blog as a template set. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

initial commit 
byrnereese (author)
Fri May 29 15:59:48 -0700 2009
commit  b9c561b70bd5bc2fcb4c6724d1a7d1f0428b5bf0
tree    95c1349609b3c82b70a53dace8be4692eb621b60
mt-tool-exportts / README.txt README.txt
100644 70 lines (45 sloc) 2.046 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## NAME
 
export-ts - A tool to export a blog's templates as a template set
 
## SYNOPSIS
 
    > cd /path/to/cgi-bin/mt
    > perl ./tools/export-ts -blog=1 -id="MyTemplateSet"
 
## INSTALLATION
 
Place this script inside your Movable Type tools directory:
 
    /PATH/TO/MT/tools/
 
## DESCRIPTION
 
export-ts is a tool to export a blog's templates to a template set (a plugin) that can be installed elsewhere.
 
## OPTIONS
 
The following options are available:
 
--blog (required)
The Blog ID to export templates from
 
--id
The ID to be used for the creation of the resulting plugin. This is also used to determine the output directory for related files.
 
--name
The name to be used for the creation of the resulting plugin. This is also used to determine the output directory for related files.
 
--version
The version string to be used for the creation of the resulting plugin.
 
--static
The path to the directory containing your mt-static files for this template set. It must be a relative path from your mt-static folder.
 
--key
The MT::PluginData key of the resulting template set.
 
--out
The path to a directory in which you wish to output the template set's files. (default: current directory)
 
--verbose
Show verbose messages.
 
## USAGE
 
From the command line, one would type:
 
    > cd /path/to/cgi-bin/mt
    > chmod a+x tools/export-ts
    > perl ./tools/export-ts --blog=1 --id=MySet --name="My Template Set" --version=3 --out="template-sets"
This would result in the following directories being created:
 
    /path/to/cgi-bin/mt/template-sets/
        MySet-3/
            plugins/
                MySet/
                    config.yaml
                    templates/*
            mt-static/
                plugins/
                    MySet/*
 
You should then be able to zip up the MySet directory or simply install as you would install any other plugin.
 
Once installed you can use the "refresh blog templates" action in the sidebar of the the Manage Templates screen (Design > Templates). Once templates are refreshed, rebuild the blog.
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server