Tag Link | [Tag_Name] | Category | Custom Tag |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 6.0 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[Tag_Name] can be used within a custom tag definition. It returns the name of the tag that is currently executing.
This is particularly useful within the _UnknownTag callback function which is called when an unknown member tag is called for a data type.
[Tag_Name]
[Define_Tag: 'myTag']
[If: (Tag_Name) == 'myTag']
...
[/If]
[/Define_Tag]
[Define_Type: 'myType']
[Define_Tag: '_UnknownTag']
[Select: Tag_Name]
[Case: 'myTag1']
...
[Case]
...
[/Select]
[/Define_Tag]
[/Define_Type]
No Parameters Required.
To get the name of the current executing tag:
Use the [Tag_Name] tag. Within a custom tag [Tag_Name] returns the name under which the current tag was called. In the following example, the tag [myTag] simply returns the name of the tag.
[Define_Tag: 'myTag'][Return: Tag_Name][/Define_Tag]
[myTag]
myTag