-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL.txt
87 lines (64 loc) · 3.67 KB
/
INSTALL.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Installation
------------
Install the Textile module as you would with any Drupal module.
Before enabling the module, you must place the Textile PHP class in your Drupal
installation. See External Dependencies below for details.
After enabling the module, you must add the Textile filter to the appropriate
input formats and set any desired configuration options.
NOTE: You need to be careful with the order of your input filters. It is
recommended to set up a special filter for textile, disable the line-break
converter, set up the HTML filter to run AFTER textile, and only allow the types
of tags you want to permit.
External dependencies
---------------------
This module depends on the Variables API module [1]; install it before the
Textile module.
This module depends also on the Textile PHP class from the
TextPattern project [2]. The classTextile.php is packaged in the
source/textpattern/lib directory of that project. This file must be downloaded
and placed inside the include directory present in the directory containing the
module, or alternatively managed as an external library via the Variables API
module (see the optional "Libraries configuration" below).
You may download the most recent TextPattern tarball from [2] and extract the
classTextile.php file.
The file may also be obtained directly from the subversion (svn) repository
using wget/curl, svn export or svn externals. The most recent stable version can
be found by browsing the Google code repository [3].
* Navigate to the most recent version (4.3.0 at the time of writing).
* Navigate to the source/textpattern/lib directory.
* Download the classTextile.ph*p file (eg, right click, save as) or copy the
URL of the file and use wget/curl, svn export, or svn externals to obtain
the file from via the command line.
If you are maintaing your code base in svn you may use svn export which writes a
copy to your local directory without the .svn hidden files to track changes. Run
the following commands from within the "include" directory inside the Textile
module's installation directory:
svn export http://textpattern.googlecode.com/svn/releases/4.3.0/source/textpattern/lib/classTextile.php
Alternatively, instead of checking out, externals may be used. Externals can be
seen as (remote) symlinks in subversion, and requires your own project in your
own svn repository, of course. Since externals do not work well on a single
file, you must use the Textile library approach as indicated in the optional
Libraries Configuration (detailed below). Use the following commands:
cd sites/all/libraries
svn propedit svn:externals .
Your editor will open. Add a line:
textile http://textpattern.googlecode.com/svn/releases/4.3.0/source/textpattern/lib/
Using this method, future checkouts and code updates of your project repository
will force svn to grab the externals, but it will keep the references on the
remote server.
Libraries configuration (optional)
----------------------------------
From version 7.x-2.0-rc8 and onward, this module supports placing the Textile
class in a separate shared location within your Drupal installation, and uses
the Variables API module for dynamically finding the external code libraries
(such as Textile).
To create a library for Textile, create a directory called 'textile' in one of
the recommended locations for shared libraries. The locations where the
'textile' directory is searched are:
* sites/all/libraries/textile
* sites/$domain/libraries/textile
* profiles/$profile/libraries/textile
$domain is the domain name, and $profile is the currently used profile name.
[1] http://drupal.org/project/vars
[2] http://textpattern.com/download
[3] http://textpattern.googlecode.com/svn/releases