<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум ReadyScript &mdash; Выпадающее меню выборки категорий.]]></title>
		<link>https://forum.readyscript.ru/topic/2119/vypadayushchee-menyu-vyborki-kategorii/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/2119/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Выпадающее меню выборки категорий.».]]></description>
		<lastBuildDate>Tue, 11 Aug 2020 09:42:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Выпадающее меню выборки категорий.]]></title>
			<link>https://forum.readyscript.ru/post/11243/#p11243</link>
			<description><![CDATA[<div class="quotebox"><cite>Daniel пишет:</cite><blockquote><p>оо,с этим вам тут к сожалению вряд ли помогут.<br />Некоторое время назад у меня был подобный передел,но мы его так и не осилили</p></blockquote></div><p>Ясно. Спасибо хоть Вы ответили. Ничего страшного - сам сделаю.</p>]]></description>
			<author><![CDATA[null@example.com (Павел)]]></author>
			<pubDate>Tue, 11 Aug 2020 09:42:29 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11243/#p11243</guid>
		</item>
		<item>
			<title><![CDATA[Re: Выпадающее меню выборки категорий.]]></title>
			<link>https://forum.readyscript.ru/post/11242/#p11242</link>
			<description><![CDATA[<p>оо,с этим вам тут к сожалению вряд ли помогут.<br />Некоторое время назад у меня был подобный передел,но мы его так и не осилили</p>]]></description>
			<author><![CDATA[null@example.com (Daniel)]]></author>
			<pubDate>Tue, 11 Aug 2020 07:48:14 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11242/#p11242</guid>
		</item>
		<item>
			<title><![CDATA[Выпадающее меню выборки категорий.]]></title>
			<link>https://forum.readyscript.ru/post/11229/#p11229</link>
			<description><![CDATA[<p>Добрый день.</p><p>Огромная просьба – помогите пожалуйста. Хочу реализовать выпадающий список меню выборки категорий. Как например очень удобно сделано на onitochki.ru .</p><p>Не могу разобраться куда добавить $node, чтобы у категорий&nbsp; (.t-nav-catalog-list__dir .t-nav-catalog-list-block), у которых есть дочки вызывалось (.t-nav-catalog-list__dir .t-nav-catalog-list-block.node::after).</p><p>Пробывал с&nbsp; {foreach $node-&gt;getChilds() as $sub_node}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {$sub_dir = $sub_node-&gt;getObject()}<br />Но увы.....</p><div class="codebox"><pre><code>{* Список категорий из 3-х уровней *}
{nocache}
{addjs file=&quot;libs/jquery.mmenu.min.js&quot;}
{addcss file=&quot;libs/jquery.mmenu.css&quot;}
{/nocache}

{if $dirlist}
    &lt;nav&gt;
        &lt;ul class=&quot;nav navbar-nav&quot;&gt;
            {hook name=&quot;catalog-blocks-category-category:list-item&quot; title=&quot;{t}Дополнительные пункты меню, в меню каталога{/t}&quot;}
                {foreach $dirlist as $dir}
                    &lt;li class=&quot;{if $dir-&gt;getChildsCount()} t-dropdown{/if}&quot; {$dir.fields-&gt;getDebugAttributes()}&gt;
        
    {* Первый уровень *}
    
            &lt;a class=&quot;batmencat&quot; {$dir.fields-&gt;getDebugAttributes()} href=&quot;{$dir.fields-&gt;getUrl()}&quot;&gt;&lt;span&gt; &lt;/span&gt;{$dir.fields.name}&lt;/a&gt;
                {if $dir-&gt;getChildsCount()}
            
   {* Второй уровень *}
   
                &lt;div class=&quot;t-dropdown-menu&quot;&gt;
                    &lt;div class=&quot;container-fluid drmen&quot;&gt;
                        &lt;div class=&quot;t-nav-catalog-list__inner&quot;&gt;
                            &lt;div class=&quot;t-close&quot;&gt;&lt;i class=&quot;pe-4x pe-7s-angle-left&quot;&gt;&lt;/i&gt;&lt;/div&gt;
                                &lt;div class=&quot;t-nav-catalog-list__dir&quot;&gt;
                                    {foreach $dir.child as $subdir}
                                        &lt;div class=&quot;t-nav-catalog-list-block&quot;&gt;
                                            &lt;a {$subdir.fields-&gt;getDebugAttributes()} href=&quot;{$subdir.fields-&gt;getUrl()}&quot; class=&quot;t-nav-catalog-list-block__header&quot;&gt;{$subdir.fields.name}&lt;/a&gt;

    {* Третий уровень *}
    
                    {if $subdir-&gt;getChildsCount()}
                        &lt;div class=&quot;t-nav-catalog-sublist-block&quot;&gt;
                            &lt;ul class=&quot;t-nav-catalog-list-block__list&quot;&gt;
                                {foreach $subdir.child as $subdir2}
                                    &lt;li&gt;&lt;a {$subdir2.fields-&gt;getDebugAttributes()} href=&quot;{$subdir2.fields-&gt;getUrl()}&quot; class=&quot;t-nav-catalog-list-block__link&quot;&gt;{$subdir2.fields.name}&lt;/a&gt;&lt;/li&gt;
                                
                                                    {/foreach}
                                                &lt;/ul&gt;
                                            &lt;/div&gt;
                                        {/if}
                                    &lt;/div&gt;
                                {/foreach}
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            {/if}
        &lt;/li&gt;
        {/foreach}    
        
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;http://tss.weberro.ru/&quot;&gt;Главная&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/delivery/&quot;&gt;Доставка&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/payment/&quot;&gt;Оплата&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/optovikam/&quot;&gt;Оптовикам&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/kontakty/&quot;&gt;Контакты&lt;/a&gt;&lt;/li&gt;
        
        {/hook}
    &lt;/ul&gt;
&lt;/nav&gt;


{* Мобильная версия каталога - 2 уровня *}
&lt;nav id=&quot;mmenu&quot; class=&quot;hidden&quot;&gt;
    &lt;ul&gt;
        &lt;li&gt;
            {moduleinsert name=&quot;\Catalog\Controller\Block\SearchLine&quot; hideAutoComplete=true}
        &lt;/li&gt;
        {hook name=&quot;catalog-blocks-category-category:list-item-mobile&quot; title=&quot;{t}Доплнительные пункты меню, в меню каталога - мобильная версия{/t}&quot;}
        {foreach $dirlist as $dir}
            &lt;li&gt;
                &lt;a href=&quot;{$dir.fields-&gt;getUrl()}&quot;&gt;{$dir.fields.name}&lt;/a&gt;
                {if $dir-&gt;getChildsCount()}
                    &lt;ul&gt;
                        {foreach $dir.child as $subdir}
                            &lt;li&gt;
                                &lt;a href=&quot;{$subdir.fields-&gt;getUrl()}&quot;&gt;{$subdir.fields.name}&lt;/a&gt;
                            &lt;/li&gt;
                        {/foreach}
                    &lt;/ul&gt;
                {/if}
            &lt;/li&gt;
        {/foreach}
       &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;http://tss.weberro.ru/&quot;&gt;Главная&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/delivery/&quot;&gt;Доставка&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/payment/&quot;&gt;Оплата&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/optovikam/&quot;&gt;Оптовикам&lt;/a&gt;&lt;/li&gt;
        &lt;li class=&quot;second_item&quot;&gt;&lt;a href=&quot;/kontakty/&quot;&gt;Контакты&lt;/a&gt;&lt;/li&gt;
        
    {*    &lt;div class=&quot;gen_telo&quot;&gt;
            &lt;li class=&quot;up_telo&quot;&gt;&lt;a href=&quot;tel:89518468896&quot;&gt;8-951-846-88-96&lt;/li&gt;
            &lt;li class=&quot;mid_telo&quot;&gt;&lt;a href=&quot;tel:89185220222&quot;&gt;8-918-522-02-22&lt;/li&gt;
            &lt;li class=&quot;down_telo&quot;&gt;пн-сб 10:00-20:00&lt;/li&gt;
        &lt;/div&gt;
     *} 
        {/hook}
    &lt;/ul&gt;
&lt;/nav&gt;


{else}
    &lt;div class=&quot;col-padding&quot;&gt;
        {include file=&quot;%THEME%/block_stub.tpl&quot;  class=&quot;text-center white block-category&quot; do=[
            [
                &#039;title&#039; =&gt; t(&quot;Добавьте категории товаров&quot;),
                &#039;href&#039; =&gt; {adminUrl do=false mod_controller=&quot;catalog-ctrl&quot;}
            ]
        ]}
    &lt;/div&gt;
{/if}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Павел)]]></author>
			<pubDate>Wed, 05 Aug 2020 07:49:02 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11229/#p11229</guid>
		</item>
	</channel>
</rss>
