<?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/1171/</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 #21069)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21069</guid>
					<link>http://79.174.14.219/1171.html#comment21069</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[<blockquote>Где добавить пункт в меню?</blockquote>/common/templates/skin/experience-simple/settings/config/<strong>menu.php</strong><br/>
<pre class="prettyprint"><code>/**
 * Главное меню сайта  + experience
 * Настройки берутся из главного конфига меню common/config/menu.php
 * Добавлены классы иконок
 */
..........</code></pre><br/>
<blockquote>И как отредактировать вот эти ссылки?</blockquote>/common/templates/skin/experience-simple/themes/default/layouts/<strong>default.tpl</strong><br/>
<pre class="prettyprint"><code>&lt;div class=&quot;col-sm-8&quot;&gt;
   &lt;h4&gt;{$aLang.footer_menu_navigate_info}&lt;/h4&gt;
    &lt;ul class=&quot;footer-column&quot;&gt;
     &lt;li&gt;&lt;a class=&quot;link link-dual link-lead link-clear&quot; href=&quot;#&quot;&gt;{$aLang.footer_menu_project_about}&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a class=&quot;link link-dual link-lead link-clear&quot; href=&quot;#&quot;&gt;{$aLang.footer_menu_project_rules}&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a class=&quot;link link-dual link-lead link-clear&quot; href=&quot;#&quot;&gt;{$aLang.footer_menu_project_advert}&lt;/a&gt;&lt;/li&gt;
     &lt;li&gt;&lt;a class=&quot;link link-dual link-lead link-clear&quot; href=&quot;#&quot;&gt;{$aLang.footer_menu_project_help}&lt;/a&gt;&lt;/li&gt;
 {hook run='footer_menu_project_item'}
   &lt;/ul&gt;
&lt;/div&gt;</code></pre><br/>
Ну и сам текст ссылок, разумеется, в языковом файле.]]></description>
					<pubDate>Sat, 16 May 2015 13:26:32 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21071)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21071</guid>
					<link>http://79.174.14.219/1171.html#comment21071</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[А можно поподробнее про редактирование меню? С футером разобрался вроде.]]></description>
					<pubDate>Sat, 16 May 2015 13:35:38 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21074)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21074</guid>
					<link>http://79.174.14.219/1171.html#comment21074</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[1. Открываем файл: common/config/<strong>menu.php</strong><br/>
2. Копируем весь код отвечающий за вывод меню (примерно с 27-й по 66-ю строку):<br/>
<pre class="prettyprint"><code>/**
 * Главное меню сайта
 * Приложение, шаблоны и плагины переопределяют и расширяют эти настройки
 */
$config['data']['main'] = array(
    'init'        =&gt; array(
        'fill' =&gt; array(
            'list' =&gt; array('*'),
        ),
    ),
    'description' =&gt; '{{menu_main_description}}',
    'list'        =&gt; array(
        'index'          =&gt; array(
            'text'        =&gt; '{{topic_title}}',
            'link'        =&gt; '___path.root.url___',
            'description' =&gt; '{{menu_main_index_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('index', 'blog')),
        ),
        'blogs'          =&gt; array(
            'text'        =&gt; '{{blogs}}',
            'link'        =&gt; '___path.root.url___/blogs/',
            'description' =&gt; '{{menu_main_blogs_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('blogs')),
        ),
        'people'         =&gt; array(
            'text'        =&gt; '{{people}}',
            'link'        =&gt; '___path.root.url___/people/',
            'description' =&gt; '{{menu_main_people_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('people')),
        ),
        'stream'         =&gt; array(
            'text'        =&gt; '{{stream_menu}}',
            'link'        =&gt; '___path.root.url___/stream/',
            'description' =&gt; '{{menu_main_stream_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('stream')),
        ),
        'main_menu_item' =&gt; '',
    )
);
</code></pre><br/>
Копируем это в файл /app/config/<strong>menu.php</strong> (между <strong>&lt; ?php</strong> и <strong>// EOF</strong>):<br/>
<pre class="prettyprint"><code>&lt;?php
сюда
// EOF</code></pre><br/>
3. Добавляем свой пункт. Например:<br/>
<pre class="prettyprint"><code>'my_item' =&gt; array(
            'text' =&gt; '{{my_item_menu}}',
            'link' =&gt; '___path.root.url___/my_item/',
            'description' =&gt; '{{menu_main_my_item_description}}',
            'active' =&gt; array('compare_action' =&gt; array('my_item')),
        ),</code></pre><br/>
Где 'text' — это текст ссылки; 'link' — сама ссылка (url); 'description' — сам есчо не знаю зачем это; 'active' — на какой странице отображать ссылку как активную (css).<br/>
<br/>
Сохраняем.]]></description>
					<pubDate>Sat, 16 May 2015 14:25:41 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21079)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21079</guid>
					<link>http://79.174.14.219/1171.html#comment21079</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[Изменил код, но на сайте ничего.<br/>
код из App/congig/menu.php<br/>
<pre class="prettyprint"><code>&lt;?php

$config['data']['main'] = array(
    'init'        =&gt; array(
        'fill' =&gt; array(
            'list' =&gt; array('*'),
        ),
    ),
    'description' =&gt; '{{menu_main_description}}',
    'list'        =&gt; array(
        'index'          =&gt; array(
            'text'        =&gt; '{{topic_title}}',
            'link'        =&gt; '___path.root.url___',
            'description' =&gt; '{{menu_main_index_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('index', 'blog')),
        ),
        'blogs'          =&gt; array(
            'text'        =&gt; '{{blogs}}',
            'link'        =&gt; '___path.root.url___/blogs/',
            'description' =&gt; '{{menu_main_blogs_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('blogs')),
        ),
        'people'         =&gt; array(
            'text'        =&gt; '{{people}}',
            'link'        =&gt; '___path.root.url___/people/',
            'description' =&gt; '{{menu_main_people_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('people')),
        ),
        'stream'         =&gt; array(
            'text'        =&gt; '{{stream_menu}}',
            'link'        =&gt; '___path.root.url___/stream/',
            'description' =&gt; '{{menu_main_stream_description}}',
            'active'      =&gt; array('compare_action' =&gt; array('stream')),
        ),
        'main_menu_item' =&gt; '',
'my_item' =&gt; array(
            'text' =&gt; 'Чат',
            'link' =&gt; '___path.root.url___/pages/chat',
            'description' =&gt; '{{menu_main_my_item_description}}',
            'active' =&gt; array('compare_action' =&gt; array('my_item')),
        ),
    )
);
//EOF</code></pre>]]></description>
					<pubDate>Sat, 16 May 2015 14:42:57 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21080)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21080</guid>
					<link>http://79.174.14.219/1171.html#comment21080</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[Извините, нужно было сразу спросить: у вас версия движка какая?]]></description>
					<pubDate>Sat, 16 May 2015 15:25:19 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21081)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21081</guid>
					<link>http://79.174.14.219/1171.html#comment21081</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[Ваша версия Alto CMS: 1.1.0-beta (последняя)]]></description>
					<pubDate>Sat, 16 May 2015 15:27:33 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21082)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21082</guid>
					<link>http://79.174.14.219/1171.html#comment21082</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[Тогда второй вопрос. <br/>
Здесь: <br/>
<blockquote>код из App/congig/menu.php</blockquote> — просто описка?]]></description>
					<pubDate>Sat, 16 May 2015 15:29:20 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21083)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21083</guid>
					<link>http://79.174.14.219/1171.html#comment21083</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[/app/config/menu.php]]></description>
					<pubDate>Sat, 16 May 2015 16:04:27 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21088)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21088</guid>
					<link>http://79.174.14.219/1171.html#comment21088</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[Так что мне делать? app с маленькой, все верно.]]></description>
					<pubDate>Sat, 16 May 2015 19:23:06 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21097)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21097</guid>
					<link>http://79.174.14.219/1171.html#comment21097</link>
					<author>orthograf@bk.ru</author>
					<description><![CDATA[У меня всё работает. Для проверки скопировал Ваш вариант — работает и он.<br/>
Кстати, для версии 1.1 есть замечательное нововведение в Админке. <br/>
Админ/Настройки/Менеджер меню (site.ru/admin/settings-menumanager). Здесь есть возможность сделать то, что вы хотите (Главной меню сайт — редактировать).]]></description>
					<pubDate>Sun, 17 May 2015 10:16:06 +0300</pubDate>
									</item>
							<item>
					<title>Изменение сайта (comment #21128)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1171/#comment21128</guid>
					<link>http://79.174.14.219/1171.html#comment21128</link>
					<author>pavlikelf@gmail.com</author>
					<description><![CDATA[Нашел, исправил.]]></description>
					<pubDate>Sun, 17 May 2015 16:04:57 +0300</pubDate>
									</item>
					</channel>
	</rss>
