custom token with arguments

Created on 31 October 2013, over 11 years ago
Updated 3 February 2025, 3 months ago

Hi,

I'd like to have a custom token which can either send or receive arguments. either way.

Example:

[node:url:args]
[node:url:args:1]
[node:url:args:2]

rather than just a monolithic:

[node:url]

in other words, it sends arguments array into the php code of the custom token. Or, possibly, alternatively, it is able to parse an array which my code returns, and grab $array[1], $array[2].

is anything like this possible with the token_custom module?

I am not referring to [node:url], by the way. I mean [custom:mytoken:args] to send or receive an arg1 and arg2.

thanks.

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States samueldarwin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024