<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Extrafield Textarea for some reason modifies the uploaded content</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 12 Apr 2026 20:08:18 -0000</pubDate>

		<item>
			<title>staleo</title>
			<description><![CDATA[<p>Seems to work correctly now, I appreciate it, Twiebie!</p>
]]></description>
			<pubDate>Пн, 14 Жов 2013 05:33:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7556&d=0#post38155]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>Hi staleo,</p>

<p>It's most likely HTML Purifier filtering the data-caption attributes.</p>

<p>Try adding this to /plugins/htmlpurifier/presets/htmlpurifier.group_5.preset</p>

<pre class="brush:php;">
$def = $config-&gt;getHTMLDefinition(true);
$def-&gt;addAttribute('img', 'data-caption', 'Text');</pre>
]]></description>
			<pubDate>Нд, 13 Жов 2013 20:08:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7556&d=0#post38154]]></link>
		</item>
		<item>
			<title>staleo</title>
			<description><![CDATA[<p>All right, the topic is far from being easily understandable from the first sight, but let me explain.</p>

<p>For a better picture-sliding performance on a page, I use a great JQuery-run gallery by Artem Polikarpov, called Fotorama. Here's it: <a href="http://fotorama.io" rel="nofollow">http://fotorama.io</a>.</p>

<p>Among the options it offers, there's an easy way to add a caption for a specific image. Here's how it works. You just need to implement a parameter</p>

<pre class="brush:css;">
data-caption="blabla"</pre>

<p>Like here: </p>

<pre class="brush:css;">
&lt;div class="fotorama"&gt;
 &lt;img src="https://www.cotonti.com/1.jpg" data-caption="One"&gt;
 &lt;img src="https://www.cotonti.com/2.jpg" data-caption="Two"&gt;
 &lt;img src="https://www.cotonti.com/3.jpg" data-caption="Three"&gt;
&lt;/div&gt;</pre>

<p>where One, Two, and Three are the captions for the photos you want to insert. I need to fulfill the images dinamically, so I implied an extrafield textarea. But here is a puzzling thing: Cotonti erases (!!) the <em><strong>data-caption="One"</strong></em> parameter, and instead, adds a <em><strong>alt="1.jpg"</strong></em> parameter. I got nothing against the alt thing, but where's my data-caption?</p>

<p>Hope to find a good solution with you.</p>

<p>BTW, you guys should really check this Fotorama thing, it really kicks asses!</p>
]]></description>
			<pubDate>Нд, 13 Жов 2013 19:38:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=7556&d=0#post38153]]></link>
		</item>
	</channel>
</rss>