Feature #33255
sliding-tabs-header with more than text (html-tags like <img ...> and <br>)
| Status: | On Hold | Start date: | 2012-01-17 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| TYPO3 Version: | 6.1 | PHP Version: | ||
| Votes: | 0 |
Description
we wanted images in the header of the sliding tabs with images provided from the CEs included. So I build a JS to wrap the image before the CE-header (select image layout "Beside Text, Left"/"Beside Text, Right") into a h1-tag.
so the JS of the extension grabbed the first header and inserted ...
... only the text-part of this header-tag into the tab-header: nothing. :-(
just one small change to the file 'res/effects/sudoSlider/sudoSliderEffectbox.js':
original:
20 ,getTitles : function (element) {
21 var titles = [];
22 $(element).find('.effectBoxItem').find(':header:first').each(function(index,item){
23 var heading = $(item);
24 heading.hide();
25 titles.push(heading.text());
26 });
new:
20 ,getTitles : function (element) {
21 var titles = [];
22 $(element).find('.effectBoxItem').find(':header:first').each(function(index,item){
23 var heading = $(item);
24 heading.hide();
25 titles.push(heading.html()); // <<<<<<<<<
26 });
also needed, if you have enhanced your header-field to include line breaks (br-tags) and want to include them into the tab-headers.
History
Updated by Dmitry Dulepov 3 months ago
- Status changed from New to On Hold
- TYPO3 Version set to 6.1
This may have security implications. Need to think about it.