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

Dirk Frederickx commented on JSPWIKI-432:
-----------------------------------------


The main advantage is that page-tabs  get promoted to become page sections.
* TABs would automatically appear in a Table Of Contents
* Section-Editing would be more natural allowing to edit a page tab.


More:
The current tabbed-Sections are dynamic styles. This means they are considered 
to be nothing more the visual sugar (GUI level only)  This also means the pages 
can perfectly be accessed and read without rendering the tabbed-sections -- 
only a screen-based experience would be different; the semantics of the page do 
not change.  (BTW, we make already use of the concept -- when printing a page, 
all tabs will be printed sequentially -- you can't click on the tabs when 
reading a paper version ;-)

With the proposal to simplify the markup, the notion of dynamic style still 
remains: the rendering of Tabs is only visual sugar, not semantics.

However, a TAB is now being considered as a (semantic) section, always preceded 
by a !!!head.  While today, you could put a start and end of a Tab anywhere in 
the page content, this would now be limited to a section head.  IMHO, this is a 
more natural behaviour.






> 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: Dirk Frederickx
>            Assignee: Dirk Frederickx
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to