incubator-jspwiki-dev mailing list archives

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


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)

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.


!!!%%tab First tab title

! Some embedded section

!!!%%tab Second tab title


This would render as:

<div class="tabbedSection">

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

<h4> Some embedded section</h4>

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


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:

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


> Simplify Tabbed Section markup
> ------------------------------
>                 Key: JSPWIKI-432
>                 URL:
>             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
> ...
> ...
> /%
> {noformat}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message