cmpLauncher

cmplauncher

  • By romain
  • Latest release June 27, 2011 (15 years ago)

About

cmpLauncher allows you to display a link or redirect a user to a particular CMP (Component/Extra page) based on the template ID or the resource ID you are editing.

NOTE: there is no ACL check in the plugin for now, so the links/redirections will occurs to any user.

Installation & usage

Once installed (via the package manager) edit the plugin property named "cmp" (check http://rtfm.modx.com/display/revolution20/Properties+and+Property+Sets#PropertiesandPropertySets-AssigningPropertySetstoElements for more infos on properties) and use the following syntax:

t:id:id,r:id:id:1,…

Parameters:

  • the first one is the constraint (t stand for template, r for resource)
  • the second one is the template or resource ID
  • the third one is the action ID
  • the fourth parameter, if set, enables the automatic redirection to the CMP

Please, for now declare resources constraints after all your templates ones so they can override. For example, let's say you want all resources using template ID 3 provide a link to the action ID 80, but you want the resource ID 20 (which uses the template ID 3) to automaticly redirect the user to action 79, you would have to use:

t:3:80,r:20:79:1

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer romain
  • Latest release June 27, 2011 (15 years ago)
  • First seen in SiteDash June 27, 2011 (15 years ago)
  • License GPLv2
  • MODX support 2.1 – 100.0

Releases 1 indexed release

Changelog
MODX.com

1.0.0-beta2

June 27, 2011

15 years ago

—