[ 
https://issues.apache.org/jira/browse/JSPWIKI-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13917521#comment-13917521
 ] 

brushed commented on JSPWIKI-432:
---------------------------------


A simplified markup for tabbed-sections has been added to the HADDOCK Template.
(since 2.10.1.svn.5)
Instead of putting each tab inside a {{%%tab-<some title> .. /%}} container,  
you can just use regular header lines (!, !!, !!!) to start a new tab.  The 
level of the first encountered header  (\! or \!\! or \!\!\!) will be used to 
match all subsequent tabs. 
{noformat}
%%tabs
!First tab
..
!Second tab
..
/%
{noformat}
Pros:
- simplified markup  
- less error-prone to close each and every tab with a {{/%}}
- this markup is also usable for %%pills, %%accordion, %%leftAccordion, 
%%rightAccordion, %%tabbedAccordion
Cons:
- each tab becomes a first class page header.  This implies it will appear as 
part of the Table Of Contents of the page.

The old {{%%tabbed-section}} markup remains supported, in case you would need 
tabs which should not appear in the TOC.



> Simplify Tabbed Section markup
> ------------------------------
>
>                 Key: JSPWIKI-432
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-432
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Default template
>    Affects Versions: 2.8
>            Reporter: brushed
>            Assignee: brushed
>
> The current tabbed section markup requires a rather complex markup.
> {noformat}
> %%tabbedSection
> %%tab-XXX
> ...
> /%
> %%tab-YYY
> ...
> /%
> /%
> {noformat}
> This is a proposal to simplify the markup.
> Use a standard header starting with a predefined PREFIX to denote a new tab.
> EG
> {noformat}
> %%tabbedSection
> !TAB XXX
> ...
> !TAB YYY
> ...
> /%
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to