<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум ReadyScript &mdash; Выпадающее меню выборки категорий.]]></title>
	<link rel="self" href="https://forum.readyscript.ru/feed/atom/topic/2119/" />
	<updated>2020-08-11T09:42:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.readyscript.ru/topic/2119/vypadayushchee-menyu-vyborki-kategorii/</id>
		<entry>
			<title type="html"><![CDATA[Re: Выпадающее меню выборки категорий.]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/11243/#p11243" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Daniel пишет:</cite><blockquote><p>оо,с этим вам тут к сожалению вряд ли помогут.<br />Некоторое время назад у меня был подобный передел,но мы его так и не осилили</p></blockquote></div><p>Ясно. Спасибо хоть Вы ответили. Ничего страшного - сам сделаю.</p>]]></content>
			<author>
				<name><![CDATA[Павел]]></name>
				<uri>https://forum.readyscript.ru/user/1631/</uri>
			</author>
			<updated>2020-08-11T09:42:29Z</updated>
			<id>https://forum.readyscript.ru/post/11243/#p11243</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Выпадающее меню выборки категорий.]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/11242/#p11242" />
			<content type="html"><![CDATA[<p>оо,с этим вам тут к сожалению вряд ли помогут.<br />Некоторое время назад у меня был подобный передел,но мы его так и не осилили</p>]]></content>
			<author>
				<name><![CDATA[Daniel]]></name>
				<uri>https://forum.readyscript.ru/user/1027/</uri>
			</author>
			<updated>2020-08-11T07:48:14Z</updated>
			<id>https://forum.readyscript.ru/post/11242/#p11242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Выпадающее меню выборки категорий.]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/11229/#p11229" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Павел]]></name>
				<uri>https://forum.readyscript.ru/user/1631/</uri>
			</author>
			<updated>2020-08-05T07:49:02Z</updated>
			<id>https://forum.readyscript.ru/post/11229/#p11229</id>
		</entry>
</feed>
