Project

General

Profile

Actions

Feature proposal #6811

closed

Implement support for action and user substitutions

Added by krileon over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
06 October 2017
Due date:
% Done:

100%

Estimated time:

Description

Currently if an action replaces the user object for substitutions you no longer have access to the user object data. Implement a way to have access to both for substitution usages. Maybe something like [user_user_id] to at least be able to access the raw data.

https://www.joomlapolis.com/forum/153-professional-member-support/237520-auto-action-send-email-problem

Actions #1

Updated by krileon over 6 years ago

Would be better to have a special format function like usage to cover this case so there's access to more than just the raw data. Maybe something like the below?

[cbautoactions:user]SUBSTITUTIONS_HERE[/cbautoactions:user]

Could also just use a special inline replacement as follows.

[cb:userdata field="user_id" user="[action_user]" /]

Actions #2

Updated by krileon over 6 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Add support for following substitutions.

[action_id]
[action_user]

action_id is the id of the auto action. action_user is the original action trigger user id. action_user is replaced before substitutions are parsed so you can use the below for example.

[cb:userdata field="username" user="[action_user]" /]

Actions #3

Updated by krileon over 6 years ago

  • Target version changed from 7.0.1 to 7.1.0
Actions #4

Updated by krileon over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF