<?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/1849/podskazhite-kak-v-mobilnoe-menyu-dobavit-menyu-s-kontentom/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/1849/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Подскажите как в мобильное меню добавить меню с контентом».]]></description>
		<lastBuildDate>Wed, 07 Aug 2019 09:20:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Подскажите как в мобильное меню добавить меню с контентом]]></title>
			<link>https://forum.readyscript.ru/post/10251/#p10251</link>
			<description><![CDATA[<p>в&nbsp; moduleview/catalog/blocks/category/category.tpl</p><p>вставляю </p><div class="codebox"><pre><code>{foreach $menu_level as $item}
&lt;li class=&quot;{if $item-&gt;getChildsCount()}node{/if}{if $item.fields-&gt;isAct()} act{/if}{if $item@first} first{/if}&quot; {$item.fields-&gt;getDebugAttributes()}&gt;
    &lt;a href=&quot;{$item.fields-&gt;getHref()}&quot; {if $item.fields.target_blank}target=&quot;_blank&quot;{/if}&gt;{$item.fields.title}&lt;/a&gt;
    {if $item-&gt;getChildsCount()}
    &lt;ul&gt;
        {include file=&quot;moduleview/menu/blocks/menu /branch.tpl&quot; menu_level=$item.child}
    &lt;/ul&gt;
    {/if}
&lt;/li&gt;
{/foreach}</code></pre></div><p>Получаю но не пашет, вот что получается</p><div class="codebox"><pre><code>{* Мобильная версия каталога - 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;
                {foreach $menu_level as $item}
&lt;li class=&quot;{if $item-&gt;getChildsCount()}node{/if}{if $item.fields-&gt;isAct()} act{/if}{if $item@first} first{/if}&quot; {$item.fields-&gt;getDebugAttributes()}&gt;
    &lt;a href=&quot;{$item.fields-&gt;getHref()}&quot; {if $item.fields.target_blank}target=&quot;_blank&quot;{/if}&gt;{$item.fields.title}&lt;/a&gt;
    {if $item-&gt;getChildsCount()}
    &lt;ul&gt;
        {include file=&quot;moduleview/menu/blocks/menu /branch.tpl&quot; menu_level=$item.child}
    &lt;/ul&gt;
    {/if}
&lt;/li&gt;
{/foreach}
                {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}
        {/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><p>Помогите подкорректировать пожалуйста.</p>]]></description>
			<author><![CDATA[null@example.com (Денис)]]></author>
			<pubDate>Wed, 07 Aug 2019 09:20:20 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/10251/#p10251</guid>
		</item>
	</channel>
</rss>
