-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
82 lines (48 loc) · 2.7 KB
/
README
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
Introduction
-------------------------------
This script imports basic navigation and HTML data from an existing FarCry database into a Mura one.
Requirements
-------------------------------
This was built on
Railo 3.2+
ColdFusion 7+
FarCry 6+
Mura 5.4+
MySQL 5+
Not sure about FarCry 5, you should be ok as I don't think the v6 schema changes will effect this script
To make things easier, session management must enabled
Installation
-------------------------------
Probably easiest to put this folder (farcrytomura) in the webroot of an existing project/vhost, then call it from http://www.yourproject.com/farcrytomura/
If you want, you can setup a project/vhost specifically for this, but it's not necessary.
This script has its own Application.cfc to avoid scope conflict
Caveat - the ColdFusion/Railo server (instance/context) that you run this from needs to have BOTH dsn's (the FarCry and Mura ones) in the cf admin
FarCry content types
-------------------------------
Currently we examine the FarCry navigation tree and bring across the entire structure underneath 'Root' (i.e. any nLevel 2+ nodes)
If people want it, we can extend the functionality to import from a specific node, e.g. from 'Home'. This would be handy if your FarCry site has secondary/utility navigation etc that you want imported separately.
Although all navigation nodes will be created in Mura, the only actual content that is imported is dmHTML, we ignore:
dmInclude
dmLink
Anything but the first content object under a navigation node
dmNews, dmEvent or any other "dynamic" content type
Custom tree content types
Basically we import all navigation nodes under the site tab, from "Root" down, including the HTML content.
FarCry homepage content
-------------------------------
Currently we ignore the farcry homepage content because we assume there is at least a "home" page in Mura. This is a TODO
SES URLs
-------------------------------
Mura ses url's are created on import based off the title of the page from FarCry. This should be the default behaviour as if you were created a page from within Mura admin.
Currently we're NOT importing the FarCry friendly URL into Mura.
Rolling back
-------------------------------
If you want to rollback the import, you'll need to:
DELETE FROM tcontent WHERE siteID = '[yoursite]' AND RemoteID = 'farcrytomura'
TODOs
-------------------------------
Ability to select the page template from Mura
When previewing the Mura navigation tree, indent properly
Import the FarCry "home" page content
Handle farcry secondary/utility nav's (anything else at the same level as "home")
Fix sortorder on sub items, they work fine but not as neat as they could be