[Typo3] Double checkboxes for captionSplit in Constant Editor?

Nate Russell nate at chillmost.com
Fri Jul 1 12:23:31 CEST 2005


Okay Thanks. I just wanted to see if that had anything to do with it. 
Actually, now that I've had a few hours rest and some coffee, I 've done 
some more poking around and I think this is a bug with captionSplit and 
the CSS styled IMGTEXT extension. Supposedly it was fixed but I don't 
have a patch.

Here is some more info about what actually gets put into the HTML:

If I add a caption but do not activate the captionsplit I get:

<div class="csi-textpic csi-intext-right">
				<div class="csi-image"><img src="uploads/pics/pic1.JPG" width="200" 
height="150" border="0" alt="" title="" /><div class="csi-caption"> <div 
style="text-align:center;"><p class="csc-caption">line 1<br />
line 2<br />
line 2</p></div> </div>
	    		</div>
			
				<div class="csi-image"><img src="uploads/pics/pic2.JPG" width="200" 
height="266" border="0" alt="" title="" /><div class="csi-caption"> <div 
style="text-align:center;"><p class="csc-caption">line 1<br />
line 2<br />
line 2</p></div> </div>
	    		</div>
			
				<div class="csi-image"><img src="uploads/pics/pic3.JPG" width="200" 
height="150" border="0" alt="" title="" /><div class="csi-caption"> <div 
style="text-align:center;"><p class="csc-caption">line 1<br />
line 2<br />
line 2</p></div> </div>
	    		</div>


If I activate the captionSplit option save and reload the page, all the 
text and tags between the <div class="csi-caption"> </div> is removed.

So then looking in the class.tx_cssstyledimgtext_pi1.php I see this 
which pertains to the captionSplit.

$captionArray=array();
			if ($conf['captionSplit'])	{
				$capSplit = 
$this->cObj->stdWrap($conf['captionSplit.']['token'],$conf['captionSplit.']['token.']);
				if (!$capSplit) {$capSplit=chr(10);}
				$caption2= 
$this->cObj->cObjGetSingle($conf['captionSplit.']['cObject'],$conf['captionSplit.']['cObject.'],'captionSplit.cObject');
				$captionArray=explode($capSplit,$caption2);
				while(list($ca_key,$ca_val)=each($captionArray))	{
					$captionArray[$ca_key] = 
$this->cObj->stdWrap(trim($captionArray[$ca_key]), 
$conf['captionSplit.']['stdWrap.']);
				}


Has anybody had to get around this problem before? Sure would appreciate 
some help. Thank you.





Jane Larsen wrote:
> I think double checkboxes are common...
> 1. checkbox enables/disables modifying the value and the second is the value 
> itself (only checkbox i value is boolean)
> 
> In your case both should be checked, and you have to AFAIK update twice to 
> do so if both are unchecked (once to enable selection and once to set the 
> value)
> 
> I have caption split enabled with out any difficulty...
> 
> //Jane Larsen
> 
> NB just disregard the reply if I don't make sence (I'm wasted but this ought 
> to help)
> 
> 
> On 7/1/05, Nate Russell <nate at chillmost.com> wrote:
> 
>>I'm trying to enable the captionSplit so that I can have multiple
>>pictures on a page, each with its own caption.
>>
>>I found a few threads describing it and it seemed easy enough
>>
>>In the video from Kasper and in various threads I found the same thing:
>>styles.content.imgtext.captionSplit = 1 needs to be activated in the
>>TypoScript Object Browser.
>>
>>When I do this and then reload the page it doesn't work. Instead no
>>captions are displayed at all.
>>
>>Then I noticed something strange in the Constant Editor.
>>
>>When I view the settings for "Images, caption split" in the Constant
>>Editor there are now not 1 but 2 checkboxes and they are both checked.
>>If I uncheck one or the other or both, update and then check back in the
>>TypoScript Object Browser, the value is set back to 0. If I check both
>>boxes the value in the TypoScript Object Browser goes back to 1. Either
>>way it doesn't work no matter what is checked.
>>
>>Is this a bug? What could be causing this?
>>
>>Has any body seen a similar bug? Double check boxes?
>>
>>Nate
>>_______________________________________________
>>Typo3-english mailing list
>>Typo3-english at lists.netfielders.de
>>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>



More information about the TYPO3-english mailing list