cmpLauncher

Creator: Romain Tripault (romain)

Need help installing this extra?

About cmpLauncher

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.

Information

Released
June 27, 2011

Supported Database
MySQL

License
GPLv2

Supported Versions
2.1 - Current

Downloads
1,618

Instructions

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

Current releases

1.0.0-beta2
View | Download
June 27, 2011
2.1 - Current