kaliop/jcremoteid
Composer 安装命令:
composer require kaliop/jcremoteid
包简介
jcRemoteID is an extension allowing user to manage Object RemoteID and Nodes RemoteID directly from edit mode
README 文档
README
jcRemoteID is an extension allowing users to set Object RemoteID and Node RemoteID directly from the Administration Interface:
- with a custom module/view (remoteid/update/) available from the context menu (main one, on full view)
- or using a custom a datatype
This extension has been created to avoid the usage 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 use the same remote id in multiple environments (dev, test, production) for nodes or objects (whereas object id or node id are auto increment).
Installation
- download the extension, activate it, clear caches
- to allow setting remote ids via the module, give to the users you want a policy to RemoteID/set
Using Remote ID in fetches
{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
统计信息
- 总下载量: 3.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-01-11