<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://ngcms.ru/forum/extern.php?action=feed&amp;tid=3358&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Next Generation CMS :: Форум поддержкиПлагины NSM + XFields все таки дружат]]></title>
		<link>https://ngcms.ru/forum/viewtopic.php?id=3358</link>
		<description><![CDATA[Самые свежие сообщения в Плагины NSM + XFields все таки дружат.]]></description>
		<lastBuildDate>Mon, 04 Jan 2016 20:52:26 +0000</lastBuildDate>
		<generator>FluxBB 1.5.11</generator>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=41090#p41090</link>
			<description><![CDATA[<div class="quotebox"><cite>phoboss пишет:</cite><blockquote><div><p>{% if (pluginIsActive(&#039;xfields&#039;)) %}<br />&#160; {{ plugin.xfields[0] }}<br />{% endif %}</p></div></blockquote></div><p>1. этого достаточно<br />2. xfields[0] - по умолчанию, возможны другие варианты (если в конфиге плагина установлено поле &quot;Блок&quot;)<br />3. выводятся вообще все доп. поля, т. е. не учитываются группы доп. полей категории</p>]]></description>
			<author><![CDATA[dummy@example.com (Zemlemer)]]></author>
			<pubDate>Mon, 04 Jan 2016 20:52:26 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=41090#p41090</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=41088#p41088</link>
			<description><![CDATA[<div class="quotebox"><cite>phoboss пишет:</cite><blockquote><div><p>В админке редактирование картинок xfields реализовано так:</p><p><a href="/forum/go.php?link=http://s8.hostingkartinok.com/uploads/images/2015/12/58453a7d224759de3200914feb23fcd5.jpg" rel="nofollow">http://s8.hostingkartinok.com/uploads/i … 23fcd5.jpg</a></p><p>Хочу сделать подобным образом в шаблоне news.edit. Из всего вышеописанного мне не понятно, как это реализовать. Подскажите файл шаблона админки, в котором можно посмотреть, как это реализовано.</p></div></blockquote></div><p>1. Открываем engine/skins/default/tpl/news/edit.tpl<br />2. Копируем следующий кусок</p><div class="codebox"><pre class="vscroll"><code>&lt;!-- ADDITIONAL --&gt;
&lt;div id=&quot;additional&quot; style=&quot;display: none;&quot;&gt;
&lt;table border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;0&quot; width=&quot;98%&quot;&gt;
{% if not flags[&#039;customdate.disabled&#039;] %}
&lt;tr&gt;
&lt;td class=&quot;contentHead&quot;&gt;&lt;img src=&quot;{{ skins_url }}/images/nav.png&quot; hspace=&quot;8&quot; alt=&quot;&quot; /&gt;{{ lang.editnews[&#039;date.manage&#039;] }}&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&quot;contentEntry1&quot;&gt;
&lt;table cellspacing=1 cellpadding=1 style=&quot;font: 11px verdana, sans-serif;&quot;&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;setdate_custom&quot; id=&quot;setdate_custom&quot; value=&quot;1&quot; class=&quot;check&quot; onclick=&quot;document.getElementById(&#039;setdate_current&#039;).checked=false;&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;label for=&quot;setdate_custom&quot;&gt;{{ lang.editnews[&#039;date.setdate&#039;] }}&lt;/label&gt;&lt;/td&gt;&lt;td&gt;&lt;input type=&quot;text&quot; id=&quot;cdate&quot; name=&quot;cdate&quot; value=&quot;{{ cdate }}&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;input type=&quot;checkbox&quot; name=&quot;setdate_current&quot; id=&quot;setdate_current&quot; value=&quot;1&quot; class=&quot;check&quot; onclick=&quot;document.getElementById(&#039;setdate_custom&#039;).checked=false;&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;label for=&quot;setdate_current&quot;&gt;{{ lang.editnews[&#039;date.setcurrent&#039;] }}&lt;/label&gt;  &lt;/td&gt;&lt;td&gt; &lt;/td&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
{% endif %}
{% if (pluginIsActive(&#039;xfields&#039;)) %}
&lt;!-- XFields --&gt;
{{ plugin.xfields[0] }}
&lt;!-- /XFields --&gt;
{% endif %}
{% if (pluginIsActive(&#039;nsched&#039;)) %}{{ plugin.nsched }}{% endif %}
{% if (pluginIsActive(&#039;finance&#039;)) %}{{ plugin.finance }}{% endif %}
{% if (pluginIsActive(&#039;tags&#039;)) %}{{ plugin.tags }}{% endif %}
{% if (pluginIsActive(&#039;tracker&#039;)) %}{{ plugin.tracker }}{% endif %}
&lt;/table&gt;
&lt;/div&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
$(&quot;#cdate&quot;).datetimepicker( { currentText: &quot;{{ cdate }}&quot; });
&lt;/script&gt;</code></pre></div><p>3. Вставляем в plugins/nsm/news.edit.tpl <br />4. Редактируем под себя.</p>]]></description>
			<author><![CDATA[dummy@example.com (phoboss)]]></author>
			<pubDate>Mon, 04 Jan 2016 20:40:26 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=41088#p41088</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=41033#p41033</link>
			<description><![CDATA[<p>В админке редактирование картинок xfields реализовано так:</p><p><span class="postimg"><img src="http://s8.hostingkartinok.com/uploads/images/2015/12/58453a7d224759de3200914feb23fcd5.jpg" alt="58453a7d224759de3200914feb23fcd5.jpg" /></span></p><p>Хочу сделать подобным образом в шаблоне news.edit. Из всего вышеописанного мне не понятно, как это реализовать. Подскажите файл шаблона админки, в котором можно посмотреть, как это реализовано.</p>]]></description>
			<author><![CDATA[dummy@example.com (phoboss)]]></author>
			<pubDate>Tue, 22 Dec 2015 19:37:31 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=41033#p41033</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=40172#p40172</link>
			<description><![CDATA[<p><strong>phoboss</strong>, Выше все описано подробно <img src="https://ngcms.ru/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Fri, 22 May 2015 12:20:34 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=40172#p40172</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=40171#p40171</link>
			<description><![CDATA[<p>Подскажите неучу, как вывести в шаблоне news.edit загруженные через xfields изображения (как это реализовано во вкладке &quot;дополнительно&quot; админки) <img src="https://ngcms.ru/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (phoboss)]]></author>
			<pubDate>Fri, 22 May 2015 07:03:42 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=40171#p40171</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39419#p39419</link>
			<description><![CDATA[<p>спасибо)</p>]]></description>
			<author><![CDATA[dummy@example.com (scarrr)]]></author>
			<pubDate>Tue, 17 Feb 2015 06:18:20 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39419#p39419</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39417#p39417</link>
			<description><![CDATA[<p>ошибочка надо вот так&lt;input type=&quot;file&quot; name=&quot;xfields_idполя[]&quot;&gt;</p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Tue, 17 Feb 2015 04:22:04 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39417#p39417</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39410#p39410</link>
			<description><![CDATA[<div class="quotebox"><cite>irbees2008 пишет:</cite><blockquote><div><p>P.S. Тут рассмотрен пример только для текстового поля &lt;input type=&quot;text&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; value=&quot;&quot;/&gt;<br />За тип поля отвечает параметр type=&quot;text&quot; не забудьте его поменять если у Вас другой тип поля.<br />&lt;input type=&quot;file&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; /&gt;</p></div></blockquote></div><p>блин сделал<br />Изображение: &lt;input type=&quot;file&quot; name=&quot;xfields[img]&quot; title=&quot;Изображение&quot; value=&quot;&quot;/&gt;<br />а фотка всё равно не сохраняется.. что делать?<br />сохраняется только через админку а через nsm не сохраняет как будто пустым оставил, но поле то обязательное</p>]]></description>
			<author><![CDATA[dummy@example.com (scarrr)]]></author>
			<pubDate>Mon, 16 Feb 2015 20:29:06 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39410#p39410</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39397#p39397</link>
			<description><![CDATA[<p>P.S. Тут рассмотрен пример только для текстового поля &lt;input type=&quot;text&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; value=&quot;&quot;/&gt;<br />За тип поля отвечает параметр type=&quot;text&quot; не забудьте его поменять если у Вас другой тип поля.<br />&lt;input type=&quot;file&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; /&gt;</p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Mon, 16 Feb 2015 03:21:23 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39397#p39397</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39394#p39394</link>
			<description><![CDATA[<p><strong>irbees2008</strong>, трудно ответить? напиши слово пожалуйста</p>]]></description>
			<author><![CDATA[dummy@example.com (scarrr)]]></author>
			<pubDate>Sun, 15 Feb 2015 20:18:08 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39394#p39394</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39387#p39387</link>
			<description><![CDATA[<div class="quotebox"><cite>scarrr пишет:</cite><blockquote><div><p>как сделать не текстовое поле, а &quot;группу изображений&quot;?</p></div></blockquote></div><p>Чуть выше твоего топика написано</p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Sun, 15 Feb 2015 07:26:07 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39387#p39387</guid>
		</item>
		<item>
			<title><![CDATA[Re: Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=39386#p39386</link>
			<description><![CDATA[<p>как сделать не текстовое поле, а &quot;группу изображений&quot;?</p>]]></description>
			<author><![CDATA[dummy@example.com (scarrr)]]></author>
			<pubDate>Sun, 15 Feb 2015 04:36:58 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=39386#p39386</guid>
		</item>
		<item>
			<title><![CDATA[Плагины NSM + XFields все таки дружат]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=36800#p36800</link>
			<description><![CDATA[<p>Как бы сказал наш уважаемый infinity237: &quot;Мало кто знает&quot; (а скорее всего не кто и не знает) но плагин NSM поддерживает доп. поля создаваемые XFields. Правда все это не работает в автоматическом режиме, так что придется поработать ручками.</p><p>Теперь о том как это делается:<br />1. Создаем доп. поля в плагине xfields<br />у меня это выглядеть так.<br /><span class="postimg"><img src="http://easmik.ru/uploads/images/default/nsm-1.jpg" alt="nsm-1.jpg" /></span></p><p>2. Открываем шаблон плагина NSM который находиться тут: шаблон/plugins/nsm/news.add.tpl <span style="color: silver">(примечание: Вам также нужно будет прописать этот код в файле news.edit.tpl)</span> в файле находим строчку </p><div class="codebox"><pre><code>&lt;textarea name=&quot;ng_news_content&quot; id=&quot;ng_news_content&quot; style=&quot;width:98%; height: 400px;&quot;&gt;&lt;/textarea&gt;</code></pre></div><p>И перед ней или под ней или сбоку от неё (т.е. там где вы хотите видеть поля)<br />прописываем следующий код</p><div class="codebox"><pre><code>Название поля: &lt;input type=&quot;text&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; value=&quot;&quot;/&gt;</code></pre></div><p>и так все имеющиеся у Вас поля.</p><p>Теперь шаблон выглядит так (я добавлял перед основным полем)<br /><span class="postimg"><img src="http://easmik.ru/uploads/images/default/nsm-2.jpg" alt="nsm-2.jpg" /></span></p><p>3. Проверяем что все сделано правильно.<br />На рисунке выше я уже вписал слово Тест в поле название первого ингредиента. Сохраняем и переходим в админку, находим нашу новость, нажимаем редактировать и у нас должно получиться так:<br /><span class="postimg"><img src="http://easmik.ru/uploads/images/default/nsm-3.jpg" alt="nsm-3.jpg" /></span></p><p>P.S. если в шаблоне уже прописаны все поля, то можно смотреть не в админке, а в самой новости.<br />P.S. Тут рассмотрен пример только для текстового поля &lt;input type=&quot;text&quot; name=&quot;xfields[IDполя]&quot; title=&quot;Название поля&quot; value=&quot;&quot;/&gt;<br />За тип поля отвечает параметр type=&quot;text&quot; не забудьте его поменять если у Вас другой тип поля.</p>]]></description>
			<author><![CDATA[dummy@example.com (easmik)]]></author>
			<pubDate>Fri, 08 Nov 2013 06:54:26 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=36800#p36800</guid>
		</item>
	</channel>
</rss>
