<?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/395/</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 #6447)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/395/#comment6447</guid>
					<link>http://79.174.14.219/395.html#comment6447</link>
					<author>vladimir.o.yuriev@gmail.com</author>
					<description><![CDATA[В каком-нибудь плагине, или в /classes/hooks/ новый файл создаете, и вешаете хук<br/>
<pre class="prettyprint"><code>$this-&gt;AddHook('viewer_init_start','changeskin');</code></pre><br/>
<br/>
Ну и соответственно функция примерно такая<br/>
<pre class="prettyprint"><code>public function changeskin(){
   if(Router::GetAction()=='blog'){
      Config::Set('view.skin', 'SKINNAME1');
   }
   if(Router::GetAction()=='profile'){
      Config::Set('view.skin', 'SKINNAME2');
   }
}</code></pre>]]></description>
					<pubDate>Sat, 16 Nov 2013 10:05:14 +0400</pubDate>
									</item>
							<item>
					<title>Разны шаблоны для разных подразделов (comment #6451)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/395/#comment6451</guid>
					<link>http://79.174.14.219/395.html#comment6451</link>
					<author>x-the@mail.ru</author>
					<description><![CDATA[Спасибо, очень помогло!]]></description>
					<pubDate>Sat, 16 Nov 2013 13:49:54 +0400</pubDate>
									</item>
					</channel>
	</rss>
