incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-432) Simplify Tabbed Section markup
Date Sat, 22 Nov 2008 16:36:45 GMT

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

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


I agree that the "!TAB xxx" looks like an ugly hack.

Let's keep the %%tabbedSection ... /% unchanged: the semantics are fine, as it just indicates
another kind of rendering of the enclosed page content.

However, what is needed is a way to indicate that some of the !!!Section-headers are 'special'.
They should be treated as tabs (tabbed-section), clickable toggles (various accordion styles)
etc.   

It actually would be sufficient to indicate a css-class to be attached to a !!!Section-header.
The css-class would indicate that this section is a tab.  
This approach would also allow to give specific styles to certain !!!Section-headers.

{noformat} 
%%tabbedSection

!!!%%tab First tab title

! Some embedded section

!!!%%tab Second tab title

/%
{noformat} 


This would render as:

{noformat} 
<div class="tabbedSection">

<h2 class="tab"> First tab title</h2>

<h4> Some embedded section</h4>

<h2 class="tab"> Second tab title</h2>

</div>
{noformat} 

I think the markup looks a bit bloated - but it is logical. 


One more thing ....

This could become a generic markup extension.  
When you add %% immediately after any other wiki-markup, it would insert css style info into
the generated html. 
EG: added style info to table cells, definition lists, ...

Also following style could be supported:

{noformat}
!!!%%(<css-style for this header>) Header title 
{noformat}


dirk



> 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.


Mime
View raw message