Can I link to a tab on a different page? (AUI Tabs Macro)
Asked by Stephen Williams:

I'm currently working with a teams page that uses tabs to display team status for each team. I tried to add anchors to each tab (AUI Tabs Page), but linking to these anchors from a different page simply opens the first tab.

<br />

Does anyone know if it's possible to link to a particular tab on a separate page? The Show Card macro cannot be used, as I am creating links on a different page that where the tabs/anchors are located.

Thanks!


Answers:
author: Karin van Driel
body: Hi,

I posted a question to Adaptavist similar to this and got this as a response:

"Please define an individual ID's to your AUI tabs. Once you insert the AUI tab macro, you should define the ID of it, which will act as an anchor tag. You don't need to insert the Anchor macro explicitly to the body content of the AUI Tab page macro.  

The page where you are trying to link the TABS page, please click Insert Link- choose advanced--  
Paste the full link of page containing AUI TABS followed by # and ID of the tab you want to link."

That might work for you. We export pages and found that the content of the tabs didn't show in the export, so we have gone for creating the content on separate pages, then using the Navitabs macro on each of the pages. This works well for us; the content exports successfully and the pages look similar to when you use the AUI tabs, although you can see a slight page refresh when clicking from tab to tab. Also Navitabs is free.

Please note that if you are using the export, you may want to put the Navitabs in a div with the class=noprint and ensure your PDF stylesheet hides everything with this class, as the tabs don't look good in the PDF.

Just thought I'd give you another option to consider :)

Kind Regards,   
Karin

comments: author: Stephen Williams
body: Now that we've upgraded to Confluence 5.8, this option is working for us! One thing that I can suggest is to grab the Tiny URL with the K key and use that in case the page moves or the title changes.


author: boardtc
body: Using the AUI tabs id work perfectly, thanks.


author: YOUNGHO
body: I want to link to a tab other than the Active Tab in AUI.

ex:  
- Aui Tab Group\> Aui Tab (ID: test1), Aui Tab (ID: test2)

- Active Tab is test1

- but i want to link test2

Here is what I wrote:  
Aui Tab Group\> Aui Tab (ID: test1), Aui Tab (ID: test2)

link text \> Edit \> Advanced \> link **input: page name # test2**

I did the above, but it links to Active Tab (test1).

how link to aui tab

comments: author: Karin van Driel
body: I think you need to use the full link to the page and no spaces, so something like:  

[https://yourconfluencedomain.com/display/SPACE/The+page+name#test2](http://confluence.us.ri.com/display/DEVMNT/ALTIFY+Project+WIKI)


author: Sudhir Ramdasi
body: This solution is not working for me. Surprisingly in edit mode, it is navigating to the tab id mentioned in the link but outside edit mode it is not working. Any suggestions?


author: Val Wirtz
body: I cannot get this solution to work either. I would also like some other suggestions if possible as I'm doing what Greg mentioned. I have a section of tabs and I am trying to link to a tab within one of these 5 tabs. It does not seem to work correctly using the tab ID. And I have tried HTML code, Anchors. Any help is appreciated.


author: Gabe Long
body: Is it possible to link to a specific tab within a set of group tabs? I have a section of 5 group tabs and I am trying to link to a tab within one of these 5 tabs. It does not seem to work correctly using the tab ID. I think this may be because it is already within another tab possibly.  

Thanks,  
Gabe


author: James Kleinig
body: Have you tried the include page macro? Add this macro into the tab container.

I use it all the time with tabs to bring in content from other pages. If I have more than a paragraph or two of content I tend to create pages and include them rather than build up on large page of tabs and content.

Worth considering.

Cheers

James


author: Stephen Williams
body: Thanks for your input, Kathy. Unfortunately our company is not using Zen and thus the documentation does not help our current situation.

We are using Confluence 5.1 + RefinedWiki interface.

comments: author: Kathy
body: Ah, sorry about that -- I thought I had received this under my zen listener. Unfortunately, I don't have an answer for the AUI Tabs Macro.


author: Kathy
body: Hi Stephen,  

Have you tried the technique described in this doc?

<http://www.brikit.com/display/help/Section+Tabs>


Tags: anchor

aui