<?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>Как настроить меню в шаблоне experience / Блог им. bogun / Alto CMS</title>
			<link>http://altocms.ru/comments/703/</link>
			<description><![CDATA[Подскажите пожалуйста как настроить меню в шаблоне experience -что надо прописать в конфиге шаблона чтобы назначить блоги или категории пунктам]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Как настроить меню в шаблоне experience (comment #12744)</title>
					<guid isPermaLink="true">http://altocms.ru/t/703/#comment12744</guid>
					<link>http://altocms.ru/703.html#comment12744</link>
					<author>wtf@fuckmybrain.ru</author>
					<description><![CDATA[В файле:<br/>
/common/templates/skin/experience/settings/config/config.php<br/>
Хранятся настройки. Там можно настроить «Пункты меню второго уровня» и «Пункты меню третьего уровня»]]></description>
					<pubDate>Mon, 11 Aug 2014 11:30:19 +0400</pubDate>
									</item>
							<item>
					<title>Как настроить меню в шаблоне experience (comment #12745)</title>
					<guid isPermaLink="true">http://altocms.ru/t/703/#comment12745</guid>
					<link>http://altocms.ru/703.html#comment12745</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[В конфиге шаблона что бы задать пункты для меню второго уровня нужно изменить/добавить значения в параметр $config['view']['menu']['main']. Например новый пункт меню выглядит так:<br/>
<pre class="prettyprint"><code>
'hello' =&gt; array(
    'lang' =&gt; 'hello_title',
    'url' =&gt; Config::Get('path.root.url') . 'blogs/hello',
    'icon_class' =&gt; 'fa fa-file-text-o',
),
</code></pre><br/>
Здесь: <br/>
— 'hello_title' — текстовка с надписью на кнопке, которую нужно добавить в файл common/templates/skin/experience/settings/language/ru.php <br/>
— 'Config::Get('path.root.url')' — адрес сайта, к нему дописываем путь куда будет вести ссылка<br/>
— 'fa-file-text-o' — класс иконки. Названия всех классов иконок здесь — <a href="http://fontawesome.io/icons/" rel="nofollow" >fontawesome.io/icons/</a><br/>
<br/>
Для меню третьего уровня делается все аналогично.]]></description>
					<pubDate>Mon, 11 Aug 2014 11:36:15 +0400</pubDate>
									</item>
							<item>
					<title>Как настроить меню в шаблоне experience (comment #12752)</title>
					<guid isPermaLink="true">http://altocms.ru/t/703/#comment12752</guid>
					<link>http://altocms.ru/703.html#comment12752</link>
					<author>transbud@mail.ru</author>
					<description><![CDATA[Спасибо… С этим разобрался.<br/>
А как настроить меню в футере? где править блок «информация» чтобы назначить пунктам урлы страниц?]]></description>
					<pubDate>Mon, 11 Aug 2014 14:12:31 +0400</pubDate>
									</item>
							<item>
					<title>Как настроить меню в шаблоне experience (comment #12754)</title>
					<guid isPermaLink="true">http://altocms.ru/t/703/#comment12754</guid>
					<link>http://altocms.ru/703.html#comment12754</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[В файле common/templates/skin/experience/themes/default/layouts/default.tpl со строки 178, там комментарий — ]]></description>
					<pubDate>Mon, 11 Aug 2014 15:06:21 +0400</pubDate>
									</item>
							<item>
					<title>Как настроить меню в шаблоне experience (comment #12784)</title>
					<guid isPermaLink="true">http://altocms.ru/t/703/#comment12784</guid>
					<link>http://altocms.ru/703.html#comment12784</link>
					<author>vshemarov@gmail.com</author>
					<description><![CDATA[К вышесказанному добавлю, что можно формировать меню не только руками, можно автоматически заполнять его блогами или категориями (если соответствующий плагин активирован). Для этого в параметрах меню есть такой параметр, как <strong>config</strong>. Вот как он работает:<br/>
<pre class="prettyprint"><code>$config['view']['menu']['blogs'] = array(
    'config' =&gt; array(
        'fill_from' =&gt; 'blogs',
        'limit' =&gt; 7,
    ),
);</code></pre>В меню будет выведен список блогов, отсортированных по рейтингу, т.е. будет название блога и ссылка на него. Параметр <strong>limit</strong>, как можно догадаться, задает, сколько ссылок будет в меню.<br/>
<pre class="prettyprint"><code>$config['view']['menu']['blogs'] = array(
    'config' =&gt; array(
        'fill_from' =&gt; array('blogs' =&gt; array('dev', 'special', 'trips', 'albums')),
    ),
);</code></pre>В меню будет выведен заданный список блогов. А если задать <strong>'fill_from' =&gt; 'categories'</strong> или <strong>'fill_from' =&gt; array('categories' =&gt; array(...))</strong>, то в меню будут выведены категории. Но самое интересное то, что можно комбинировать источники вывода в меню. Вот пример:<br/>
<pre class="prettyprint"><code>$config['view']['menu']['blogs'] = array(
    'config' =&gt; array(
        'fill_from' =&gt; array(
            'list' =&gt; array('item1', 'item2')
            'categories' =&gt; array('events', 'news'), 
            'blogs', 
        ),
        'limit' =&gt; 7,
    ),
    'items' =&gt; array(
        'item1' =&gt; array(
            'text' =&gt; 'Дизайн',
            'url' =&gt; '/design/',
        ),
        'item2' =&gt; array(
            'text' =&gt; 'Технологии',
            'url' =&gt; '/tech/',
        ),
    ),
);</code></pre>Здесь в меню сначала попадут два пункта из списка, который задан параметром <strong>items</strong>, потом два пункта — это категории 'events' и 'news', а потом — блоги. И т.к. список блогов явно не задан, но зато задан лимит (всего 7 пунктов в меню), то в него попадут три топ-блога по рейтингу.]]></description>
					<pubDate>Tue, 12 Aug 2014 15:11:13 +0400</pubDate>
									</item>
					</channel>
	</rss>
