<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : cot_build_extrafields</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 16 Apr 2026 14:28:13 -0000</pubDate>

		<item>
			<title>Alex300</title>
			<description><![CDATA[<p>Функция генерирует элемент формы для редактирования экстраполя для вывода в шаблоне.</p>

<p><strong>$name</strong> - имя элемента фрормы</p>

<p><strong>$extrafield</strong> - конфигурация экстраполя</p>

<p><strong>$data</strong> - существующее значение поля.</p>

<p>Например:</p>

<pre class="brush:php;">
if (!empty(Cot::$extrafields[Cot::$db-&gt;pages])) {
    foreach (Cot::$extrafields[Cot::$db-&gt;pages] as $exfld) {
        $uname = strtoupper($exfld['field_name']);
        $extrafieldElement = cot_build_extrafields(
            'rpage' . $exfld['field_name'],
            $exfld,
            $pag['page_' . $exfld['field_name']]
        );
        $extrafieldTitle = cot_extrafield_title($exfld, 'page_');

        $t-&gt;assign([
            'PAGEEDIT_FORM_' . $uname =&gt; $extrafieldElement,
            'PAGEEDIT_FORM_' . $uname . '_TITLE' =&gt; $extrafieldTitle,
            'PAGEEDIT_FORM_EXTRAFLD' =&gt; $extrafieldElement,
            'PAGEEDIT_FORM_EXTRAFLD_TITLE' =&gt; $extrafieldTitle
        ]);
        $t-&gt;parse('MAIN.EXTRAFLD');
    }
}
</pre>
]]></description>
			<pubDate>Thu, 19 Жов 2023 12:30:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=9283&d=0#post47271]]></link>
		</item>
		<item>
			<title>Kabak</title>
			<description><![CDATA[<pre class="brush:php;">
/**

 * Returns Extra fields edit fields

 *

 * @param string $name Variable name

 * @param array $extrafield Extra fields data

 * @param string $data Existing data for fields

 * @return string

 */

function cot_build_extrafields($name, $extrafield, $data)</pre>

<p> </p>

<p>Можно подробнее рассказать , что конкретно должно передаваться в параметрах этой фукции ?</p>
]]></description>
			<pubDate>Вт, 17 Жов 2023 07:22:00 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=9283&d=0#post47269]]></link>
		</item>
	</channel>
</rss>