[TYPO3] WT_Gallery CSS settings: float:left, clear:left ?!

Darko Jr. Gonzalez jkokino at gmail.com
Tue Oct 2 08:42:29 CEST 2007


heya all

I added the static template "WT Gallery (wt_gallery)".
I added this line rewrite the css:
plugin.tx_wtgallery_pi1._CSS_DEFAULT_STYLE >

But I get
<div style="float: left; clear: left;" class="wtgallery_listpic
wtgallery_listpic_act wtgallery_listpic_firstofrow">
...
<div style="float: left;" class="wtgallery_listpic wtgallery_listpic_no">
....
<div style="float: left;" class="wtgallery_listpic wtgallery_listpic_no
wtgallery_listpic_lastofrow">

How do I remove: style="float:left;" and style="float: left; clear: left;"
??
It seems to me that this is hardcoded which is not definitely the way to go.
Why hardcoding?
I opened class.tx_wtgallery_pi1.php in pi1/ folder.
Line 335-339
     $markerArray['###PIC###'] .= '<div '; // Start Marker with opening a
DIV Container
     if ($cols != '1') { // Only if Columns more than 1
      if (fmod($j,$cols) != '1') $markerArray['###PIC###'] .= 'style="float:
left;"'; // non break
      elseif (fmod($j,$cols) == '1') $markerArray['###PIC###'] .=
'style="float: left; clear: left;"'; // break
     }

I will edit this file here, but what would be great if we can enable/disable
this styling via TS setup or constants.


Thanks for reading

Always thanks for the work on this extension!


Best,
Darko


More information about the TYPO3-english mailing list