<?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://altocms.ru/comments/936/</link>
			<description><![CDATA[Доброго времени суток, подскажите возможно ли сделать так, что бы кнопка «создать» была видна незарегистрированным пользователям?]]></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 #17495)</title>
					<guid isPermaLink="true">http://altocms.ru/t/936/#comment17495</guid>
					<link>http://altocms.ru/936.html#comment17495</link>
					<author>lexey.w@gmail.com</author>
					<description><![CDATA[Взял за основу стандартный шаблон <strong>start-kit</strong>, файл <strong>/tpls/commons/common.header_top.tpl</strong><br/>
<br/>
Заменяем <pre class="prettyprint"><code>{if E::IsUser()}
&lt;button class=&quot;btn btn-success btn-write pull-right&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modal-write&quot;&gt;
   {$aLang.block_create}
&lt;/button&gt;
{/if}</code></pre>на<pre class="prettyprint"><code>&lt;button class=&quot;btn btn-success btn-write pull-right&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modal-write&quot;&gt;
    {$aLang.block_create}
&lt;/button&gt;
</code></pre><br/>
То есть, убираем условие. <br/>
А так как гость не может создавать топики, то при нажатии его будет кидать на 404-ю страницу. Сделаем так, чтобы у гостя было окно регистрации, а у авторизованного — окно добавления.<br/>
<pre class="prettyprint"><code>{if E::IsUser()}
&lt;button class=&quot;btn btn-success btn-write pull-right&quot; data-toggle=&quot;modal&quot; data-target=&quot;#modal-write&quot;&gt;
   {$aLang.block_create}
&lt;/button&gt;
{else}
&lt;a class=&quot;btn btn-success btn-write pull-right js-modal-auth-registration&quot; href=&quot;{router page='registration'}&quot;&gt;
   {$aLang.block_create}
&lt;/a&gt;
{/if}</code></pre>]]></description>
					<pubDate>Mon, 12 Jan 2015 09:33:14 +0300</pubDate>
									</item>
							<item>
					<title>Кнопка «создать» (comment #17512)</title>
					<guid isPermaLink="true">http://altocms.ru/t/936/#comment17512</guid>
					<link>http://altocms.ru/936.html#comment17512</link>
					<author>mx.partizan@gmail.com</author>
					<description><![CDATA[Спасибо, только я менял в /tpls/commons/common.header_nav.tpl]]></description>
					<pubDate>Mon, 12 Jan 2015 19:58:57 +0300</pubDate>
									</item>
							<item>
					<title>Кнопка «создать» (comment #17513)</title>
					<guid isPermaLink="true">http://altocms.ru/t/936/#comment17513</guid>
					<link>http://altocms.ru/936.html#comment17513</link>
					<author>lexey.w@gmail.com</author>
					<description><![CDATA[Скопировал не то название )]]></description>
					<pubDate>Mon, 12 Jan 2015 20:00:41 +0300</pubDate>
									</item>
					</channel>
	</rss>
