<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Нужна помощь с кодом / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://79.174.14.219/comments/890/</link>
			<description><![CDATA[Добрый день, подскажите как проверить, если хотя бы одно поле, которое проверяется нижеприведенным выражением, имеет значение (т.е. не пустое): {foreach]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Нужна помощь с кодом (comment #16827)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/890/#comment16827</guid>
					<link>http://79.174.14.219/890.html#comment16827</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[Если правильно понял задачу<pre class="prettyprint"><code>{$bExistValue=false}
{foreach from=$oContentType-&gt;getFields() item=oField}
	{if $oTopic-&gt;getField($oField-&gt;getFieldId()) && $oTopic-&gt;getField($oField-&gt;getFieldId())-&gt;getValueSource()}
		{$bExistValue=true}
	{/if}	
{/foreach}</code></pre>]]></description>
					<pubDate>Wed, 10 Dec 2014 11:26:49 +0300</pubDate>
									</item>
							<item>
					<title>Нужна помощь с кодом (comment #16843)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/890/#comment16843</guid>
					<link>http://79.174.14.219/890.html#comment16843</link>
					<author>braindep@gmail.com</author>
					<description><![CDATA[Спасибо, натолкнуло на мысль и сделал вот так:<br/>
<pre class="prettyprint"><code>{$bExistValue=false}
                            {foreach from=$oContentType-&gt;getFields() item=oField}
                                {if $oField}
                                    {$sVal = $oTopic-&gt;getField(13)}
                                    {if $sVal}
                                        {$bExistValue=true}
                                    {else}
                                        {$sVal = $oTopic-&gt;getField(9)}
                                        {if $sVal}
                                            {$bExistValue=true}
                                        {else}
                                            {$sVal = $oTopic-&gt;getField(3)}
                                            {if $sVal}
                                                {$bExistValue=true}
                                            {/if}
                                        {/if}
                                    {/if}
                                {/if}   
                            {/foreach}

                            {if $bExistValue}
                                &lt;div class=&quot;library-fields-header&quot;&gt;Посмотреть книгу на:&lt;/div&gt;
                            {/if}</code></pre><br/>
<br/>
Перебор нужен был не по всем полям, а по части.]]></description>
					<pubDate>Thu, 11 Dec 2014 03:26:21 +0300</pubDate>
									</item>
					</channel>
	</rss>
