-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
48 lines (34 loc) · 1.32 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
jcRemoteID is an extension allowing user to manage Object RemoteID
and Nodes RemoteID directly from edit mode with a datatype or with
a custom module/view (remoteid/update/<NodeID>) available from
context menu (main one, on full view)
This extension has been created to avoid the use of nodeID or
objectID within configuration (any ini) and also override.ini
(not documented but override are working on remote id condition).
The main interest of this is to be able to manage the same remote
id between multiple environments (dev, test, production) for nodes
or objects (when object id or node id are auto increment).
-- Using Remote ID in fetch --
{def $object=fetch('content','object',hash('remote_id','MYOBJECT'))}
{def $node=fetch('content','node',hash('remote_id','MYNODE'))}
-- Using Remote ID in override --
[full_myobject]
Source=node/view/full
Subdir=templates
MatchFile=node/view/full/myobject.tpl
Match[remode_id]=MYOBJECT
[full_mynode]
Source=node/view/full
Subdir=templates
MatchFile=node/view/full/mynode.tpl
Match[node_remode_id]=MYNODE
[full_mynode_children]
Source=node/view/full
Subdir=templates
MatchFile=node/view/full/mynode_child.tpl
Match[parent_node_remode_id]=MYNODE
[full_myobject_children]
Source=node/view/full
Subdir=templates
MatchFile=node/view/full/myobject_child.tpl
Match[parent_object_remode_id]=MYOBJECT