HTML - redirect user to a specific tab in a tabsetup
General
| Spaces Where Used | all SWEHB spaces |
|---|---|
| How used | Creates link taking user to a specific tab. |
| Visibility | all Admin in the Macro Browser |
| Title | tablink |
| Description | |
| Categories | |
| Icon URL | |
| Documentation URL | |
| Definition | No Macro Body |
| Output Format | |
| Status | Active in all spaces |
Rendering
Old Code
## Macro title: TABLINK
## Macro has a body: N
## Body processing: No Macro Body
## Output: Selected output option
##
## Developed by: Fred Haigh
## Date created: 6/6/2017
## Installed by: Fred Haigh
## @param tab:title=Tab to go to|type=string|required=true
## @param linktext:title=Link Text|type=string|rerquired=true
<a href="#tabs-$paramtab">$paramlinktext</a>
Code for fixing the single use problem
## Macro title: TABLINK2
## Macro has a body: N
## Body processing: No Macro Body
## Output: Selected output option
##
## Developed by: Bruce Guy
## Date created: 7/26/2021
## Installed by: Fred Haigh
## @param tab:title=Tab to go to|type=string|required=true
## @param linktext:title=Link Text|type=string|rerquired=true
<a href="#tabs-$paramtab" onclick="location.hash=''; location.hash='#tabs-$paramtab';">$paramlinktext</a>


