<?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/1542/</link>
			<description><![CDATA[Ребята, что-то я совсем отупел — как указать для созданного типа контента свою иконку в modal.write.tpl? ]]></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 #25648)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1542/#comment25648</guid>
					<link>http://79.174.14.219/1542.html#comment25648</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[Прикрутили к foreach костыль в виде цикла... Другого варианта пока не умеем. <br>
<img src="http://altocms.ru/uploads/images/00/02/54/2016/02/08/0u3f6a4f9c-567c1114-23e64657.jpg">]]></description>
					<pubDate>Mon, 08 Feb 2016 10:53:35 +0300</pubDate>
									</item>
							<item>
					<title>Иконка для нового типа контента (comment #25653)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1542/#comment25653</guid>
					<link>http://79.174.14.219/1542.html#comment25653</link>
					<author>alto@hitagi.ru</author>
					<description><![CDATA[<blockquote>костыль в виде цикла</blockquote>
Почему цикла, если условия достаточно:<br>
<pre class="prettyprint"><code>{foreach from=$aContentTypes item=oContentType}
    {if $oContentType-&#62;isAccessible()}
        &#60;li class=&#34;write-item-type-topic&#34;&#62;
            &#60;a href=&#34;{router page=&#39;content&#39;}{$oContentType-&#62;getContentUrl()}/add/&#34; class=&#34;content-logo link link-lead link-dark link-clear&#34;&#62;
                {if &#39;my-content-video&#39; == $oContentType-&#62;getContentUrl()}
                    &#60;i class=&#34;fa fa-file-video&#34;&#62;&#60;/i&#62;
                {else}
                    &#60;i class=&#34;fa fa-file-text-o&#34;&#62;&#60;/i&#62;
                {/if}
            &#60;/a&#62;
            &#60;a href=&#34;{router page=&#39;content&#39;}{$oContentType-&#62;getContentUrl()}/add/&#34; class=&#34;write-item-link link link-lead link-dark link-clear&#34;&#62;{$oContentType-&#62;getContentTitle()|escape:&#39;html&#39;}&#60;/a&#62;
        &#60;/li&#62;
    {/if}
{/foreach}</code></pre>]]></description>
					<pubDate>Mon, 08 Feb 2016 18:15:19 +0300</pubDate>
									</item>
							<item>
					<title>Иконка для нового типа контента (comment #25654)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1542/#comment25654</guid>
					<link>http://79.174.14.219/1542.html#comment25654</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[Дык, ктоб подсказал! ;)<br>
Спасибо:)<br>
<br>
P.S.: Оставлю для истории (вдруг самому пригодится). Для нескольких типов контента:<br>
<pre class="prettyprint"><code>
{foreach from=$aContentTypes item=oContentType}
  {if $oContentType-&#62;isAccessible()}
    &#60;li class=&#34;write-item-type-topic&#34;&#62;
      &#60;a href=&#34;{router page=&#39;content&#39;}{$oContentType-&#62;getContentUrl()}/add/&#34; class=&#34;content-logo link link-lead link-dark link-clear&#34;&#62;
        {if &#39;topic&#39; == $oContentType-&#62;getContentUrl()}
          &#60;i class=&#34;fa fa-file-text-o&#34;&#62;&#60;/i&#62;
        {elseif &#39;my-content-type1&#39; == $oContentType-&#62;getContentUrl()}
          &#60;i class=&#34;fa fa-camera&#34;&#62;&#60;/i&#62;
        {elseif &#39;my-content-type2&#39; == $oContentType-&#62;getContentUrl()}
          &#60;i class=&#34;fa fa-picture&#34;&#62;&#60;/i&#62;
        {elseif &#39;my-content-type3&#39; == $oContentType-&#62;getContentUrl()}
          &#60;i class=&#34;fa fa-video&#34;&#62;&#60;/i&#62;
        {/if}
      &#60;/a&#62;
    &#60;a href=&#34;{router page=&#39;content&#39;}{$oContentType-&#62;getContentUrl()}/add/&#34; class=&#34;write-item-link link link-lead link-dark link-clear&#34;&#62;{$oContentType-&#62;getContentTitle()|escape:&#39;html&#39;}&#60;/a&#62;
    &#60;/li&#62;
  {/if}
{/foreach}</code></pre>]]></description>
					<pubDate>Mon, 08 Feb 2016 18:33:01 +0300</pubDate>
									</item>
							<item>
					<title>Иконка для нового типа контента (comment #25673)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1542/#comment25673</guid>
					<link>http://79.174.14.219/1542.html#comment25673</link>
					<author>alto@hitagi.ru</author>
					<description><![CDATA[В твоём коде есть недостаток: при добавлении нового типа придётся править шаблон. Иначе не будет иконки для этого типа.]]></description>
					<pubDate>Wed, 10 Feb 2016 10:23:12 +0300</pubDate>
									</item>
					</channel>
	</rss>
