Directing a User to a Specific Tab
When a user first loads a page with tabs, you may want them to see a specific tab first.
You can set a specific tab to be the default shown tab with the Show Card macro.Â
Ingredients
Apps | Composition |
---|---|
Macros | Show Card |
Guide
Let's create a series of three tabs and have the third tab shown by default.Â
Part 1: Create the tabs (see: Creating Tabs):
Type {deck} to create a Deck of Cards macro.
A preview panel will appear. Type "Example" for the ID of your Deck of Cards.
Click Insert.Type {card} inside the Deck of Cards macro to create your first tab.
A preview panel will appear. Type in a Card Label and Card ID.
For this example, let's type in "First" for both. Click Insert.Type or insert the content for that tab inside the Card macro. For this example, let's type "Content for first tab".
Repeat steps 3 to 6 until you have three tabs.
Part 2: Direct the user to a tab:
Above the Deck of Cards macro, insert a Show Card macro by typing {show-card}.
A preview panel will appear.
In the Deck field, type in the ID of the Deck we just created, which is "Example".
In the Card field, type in the ID of the tab. Let's use "Third" to show the third tab.
Within the macro itself, type "Click Here".
Click Insert.
Now, when a user clicks on "Click Here", he will be directed to the third tab.Â
Notes
Not applicable.
Result
Â