kaliop/jcremoteid

jcRemoteID is an extension allowing user to manage Object RemoteID and Nodes RemoteID directly from edit mode

Fund package maintenance!
tanoconsulting

Installs: 3 575

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 6

Type:ezpublish-legacy-extension

1.1.0 2016-01-12 13:14 UTC

This package is auto-updated.

Last update: 2023-01-20 22:59:53 UTC


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