<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум ReadyScript &mdash; SEO-ссылки в фильтре]]></title>
	<link rel="self" href="https://forum.readyscript.ru/feed/atom/topic/1908/" />
	<updated>2019-11-14T13:40:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.readyscript.ru/topic/1908/seossylki-v-filtre/</id>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10659/#p10659" />
			<content type="html"><![CDATA[<p>Потому что в этом шаблоне её нет</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-14T13:40:00Z</updated>
			<id>https://forum.readyscript.ru/post/10659/#p10659</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10658/#p10658" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Закусило Александр пишет:</cite><blockquote><p>Попробуйте категорию получить вот так:<br /></p><div class="codebox"><pre><code>{$category=$router-&gt;getCurrentRoute()-&gt;getExtra(&#039;category&#039;)}</code></pre></div></blockquote></div><p>Да, так удалось получить. Спасибо.<br />А в чем причина может быть, почему стандартно не выводится?</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-14T12:10:12Z</updated>
			<id>https://forum.readyscript.ru/post/10658/#p10658</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10650/#p10650" />
			<content type="html"><![CDATA[<p>Попробуйте категорию получить вот так:<br /></p><div class="codebox"><pre><code>{$category=$router-&gt;getCurrentRoute()-&gt;getExtra(&#039;category&#039;)}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-14T08:15:11Z</updated>
			<id>https://forum.readyscript.ru/post/10650/#p10650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10640/#p10640" />
			<content type="html"><![CDATA[<p>{var_dump($category)} выдает NULL</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-12T18:38:05Z</updated>
			<id>https://forum.readyscript.ru/post/10640/#p10640</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10635/#p10635" />
			<content type="html"><![CDATA[<p>Попробовал тоже самое на другом сайте вставить. сайт перекосило.<br />И вот такая абракадабра в исходном коде вылезла<br /></p><div class="codebox"><pre><code>&lt;ul class=&quot;filter-checkbox_content list-unstyled rs-content&quot;&gt;
                                                                    &lt;li style=&quot;order: 1;&quot;&gt;
                                                                        &lt;input type=&quot;checkbox&quot;  name=&quot;pf[403][]&quot; value=&quot;598&quot; class=&quot;cb&quot; id=&quot;cb_403_1&quot;&gt;
                        &lt;label for=&quot;cb_403_1&quot;&gt;&lt;a href=&quot;&lt;div style=&#039;background-color: #f3f3f3;&#039;&gt;
          &lt;div&gt;&lt;b&gt;Исключение - &quot;Call to a member function getUrl() on null&quot;&lt;/b&gt;&lt;/div&gt;
          &lt;table valign=&#039;top&#039;&gt;&lt;tr&gt;&lt;td&gt;Код ошибки:&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;Тип ошибки:&lt;/td&gt;&lt;td&gt;Error&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;Файл:&lt;/td&gt;&lt;td&gt;/var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/60f38b0841e0bb7d53fe40c576264dae88cbb776_0.rs.list.my.tpl.php&lt;/td&gt;&lt;/tr&gt;  
          &lt;tr&gt;&lt;td&gt;Строка:&lt;/td&gt;&lt;td&gt;96&lt;/td&gt;&lt;/tr&gt;  
          &lt;tr&gt;&lt;td&gt;Стек вызова:&lt;/td&gt;&lt;td&gt;&lt;pre&gt;#0 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa5330220_43365559(Object(Smarty_Internal_Template))
#1 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#2 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(184): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#3 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(350): Smarty_Internal_Template-&gt;render()
#4 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/bb74641f07150a8f2266ac8c1f29fa3b15c573ac_0.rs.filters.tpl.php(300): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%catalog%/bl...&#039;, NULL, NULL, 0, 3600, Array, 0, true)
#5 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa530b808_68186870(Object(Smarty_Internal_Template))
#6 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#7 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(184): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#8 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(199): Smarty_Internal_Template-&gt;render(false, 0)
#9 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(99): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#10 /var/www/admin/www/fabrika-lukov.ru/core/rs/controller/result/standard.inc.php(241): Smarty_Internal_TemplateBase-&gt;fetch(&#039;blocks/sidefilt...&#039;)
#11 /var/www/admin/www/fabrika-lukov.ru/core/rs/controller/result/standard.inc.php(268): RS\Controller\Result\Standard-&gt;getHtml()
#12 /var/www/admin/www/fabrika-lukov.ru/core/rs/controller/abstractcontroller.inc.php(168): RS\Controller\Result\Standard-&gt;getOutput()
#13 /var/www/admin/www/fabrika-lukov.ru/core/rs/controller/abstractclient.inc.php(79): RS\Controller\AbstractController-&gt;processResult(Object(RS\Controller\Result\Standard))
#14 /var/www/admin/www/fabrika-lukov.ru/core/rs/application/block/template.inc.php(45): RS\Controller\AbstractClient-&gt;processResult(Object(RS\Controller\Result\Standard))
#15 /var/www/admin/www/fabrika-lukov.ru/core/smarty/rsplugins/function.moduleinsert.php(54): RS\Application\Block\Template::insert(&#039;catalog\\control...&#039;, Array, Array)
#16 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/1475aa692cab9f183e532b676264ba5b60a52a2f_0.rs.blocks.tpl.php(37): smarty_function_moduleinsert(Array, Object(Smarty_Internal_Template), &#039;/var/www/admin/...&#039;)
#17 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa524fb15_83678877(Object(Smarty_Internal_Template))
#18 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#19 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#20 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/5d68e5c934b6c51589852e04f3134060446e79f9_0.rs.section.tpl.php(120): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, false)
#21 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa5233a26_56146126(Object(Smarty_Internal_Template))
#22 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#23 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#24 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/5ea7d385ae1e7f0dd35198eb2abe7ff7bd9f9dc2_0.rs.sections.tpl.php(33): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, true)
#25 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa51deac2_69546019(Object(Smarty_Internal_Template))
#26 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#27 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#28 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/5d68e5c934b6c51589852e04f3134060446e79f9_0.rs.section.tpl.php(116): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, false)
#29 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa5233a26_56146126(Object(Smarty_Internal_Template))
#30 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#31 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#32 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/5ea7d385ae1e7f0dd35198eb2abe7ff7bd9f9dc2_0.rs.sections.tpl.php(33): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, true)
#33 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa51deac2_69546019(Object(Smarty_Internal_Template))
#34 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#35 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#36 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/f2ed0bc09ebc9a8686c683a5b97957a7a2c4f17c_0.rs.container.tpl.php(50): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, true)
#37 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa51d1e14_15138559(Object(Smarty_Internal_Template))
#38 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#39 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(348): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#40 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/c7d959bd751df92399726bb234a7920fdd3075f6_0.rs.gs_maker.tpl.php(38): Smarty_Internal_Template-&gt;_subTemplateRender(&#039;rs:%system%/gs/...&#039;, NULL, NULL, 0, 3600, Array, 0, true)
#41 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa5198563_72041158(Object(Smarty_Internal_Template))
#42 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#43 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(184): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#44 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(199): Smarty_Internal_Template-&gt;render(false, 0)
#45 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(99): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#46 /var/www/admin/www/fabrika-lukov.ru/core/rs/application/block/manager.inc.php(93): Smarty_Internal_TemplateBase-&gt;fetch(&#039;%system%/gs_mak...&#039;)
#47 /var/www/admin/www/fabrika-lukov.ru/cache/smarty/compile/89d73eecdd500e82ad4ccd2e3dee00b29e5a767f_0.rs.layout.tpl.php(66): RS\Application\Block\Manager-&gt;renderLayout()
#48 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_resource_base.php(128): content_5dc99fa5167a42_35437567(Object(Smarty_Internal_Template))
#49 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_template_compiled.php(170): Smarty_Template_Resource_Base-&gt;getRenderedTemplateCode(Object(Smarty_Internal_Template))
#50 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_template.php(184): Smarty_Template_Compiled-&gt;render(Object(Smarty_Internal_Template))
#51 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(199): Smarty_Internal_Template-&gt;render(false, 0)
#52 /var/www/admin/www/fabrika-lukov.ru/core/smarty/sysplugins/smarty_internal_templatebase.php(99): Smarty_Internal_TemplateBase-&gt;_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 0)
#53 /var/www/admin/www/fabrika-lukov.ru/core/rs/controller/front.inc.php(69): Smarty_Internal_TemplateBase-&gt;fetch(&#039;%THEME%/layout....&#039;)
#54 /var/www/admin/www/fabrika-lukov.ru/core/rs/router/manager.inc.php(412): RS\Controller\Front-&gt;exec()
#55 /var/www/admin/www/fabrika-lukov.ru/core/rs/router/manager.inc.php(433): RS\Router\Manager-&gt;applyRoute(Object(Catalog\Model\CustomRoute))
#56 /var/www/admin/www/fabrika-lukov.ru/index.php(24): RS\Router\Manager-&gt;dispatch()
#57 {main}&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;  
          &lt;/table&gt;
          &lt;/div&gt;</code></pre></div><p>больше всего вот эта строчка удивила &lt;a href=&quot;&lt;div style=&#039;background-color: #f3f3f3;&#039;&gt;</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-11T18:01:03Z</updated>
			<id>https://forum.readyscript.ru/post/10635/#p10635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10629/#p10629" />
			<content type="html"><![CDATA[<p>Нет, я Вам весь код дал, смотрите внимательнее что происходит у Вас.</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-11T14:14:58Z</updated>
			<id>https://forum.readyscript.ru/post/10629/#p10629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10625/#p10625" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Закусило Александр пишет:</cite><blockquote><p>Ясно. Ну у меня на сайте это сделано. Вот так.<br /></p><div class="codebox"><pre><code>&lt;ul class=&quot;filter-checkbox_content rs-content&quot;&gt;
                {$values_objects=$prop-&gt;getAllowedValuesObjects()}
                {$i = 1}
                {foreach $prop-&gt;getAllowedValues() as $key =&gt; $value}
                    &lt;li style=&quot;order: {$i++};&quot;&gt;
                        {$data=$filters[$prop.id]}
                        {if !empty($data)}
                            {foreach $data as $k=&gt;$v}
                                {$data[$k]=urldecode($v)}
                            {/foreach}
                        {/if}
                        &lt;input type=&quot;checkbox&quot; {if is_array($filters[$prop.id]) &amp;&amp; in_array($key, $filters[$prop.id])}checked{/if} name=&quot;pf[{$prop.id}][]&quot; value=&quot;{$key}&quot; class=&quot;cb&quot; id=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;
                        &lt;label for=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;&lt;a href=&quot;{str_replace(&quot;//&quot;, &quot;/&quot;, $category-&gt;getUrl())}{if $prop.alias}{$prop.alias}{else}{$prop.id}{/if}_{if $values_objects[$key].alias}{$values_objects[$key].alias}{else}{$values_objects[$key].id}{/if}/&quot;&gt;{$value}&lt;/a&gt;&lt;/label&gt;
                    &lt;/li&gt;
                {/foreach}
            &lt;/ul&gt;</code></pre></div></blockquote></div><p>есть проблемка </p><div class="codebox"><pre><code>&lt;a href=&quot;{str_replace(&quot;//&quot;, &quot;/&quot;, $category-&gt;getUrl())}{if $prop.alias}{$prop.alias}{else}{$prop.id}{/if}_{if $values_objects[$key].alias}{$values_objects[$key].alias}{else}{$values_objects[$key].id}{/if}/&quot;&gt;{$value}&lt;/a&gt;</code></pre></div><p>выдает ошибку 404, нет такой страницы.</p><p>это происходит из-за вот этого куска {str_replace(&quot;//&quot;, &quot;/&quot;, $category-&gt;getUrl())}<br />я его убрал, оставив &lt;a href=&quot;{if $prop.alias}{$prop.alias}{else}{$prop.id}{/if}_{if $values_objects[$key].alias}{$values_objects[$key].alias}{else}{$values_objects[$key].id}{/if}/&quot;&gt;{$value}&lt;/a&gt;<br />тогда работает, по при каждом следующем нажатии заново добавляет алиас. Как-то так kupioboi.ru/catalog/oboi/rodina-brenda_rossiya/rodina-brenda_rossiya/rodina-brenda_rossiya/</p><p>может у Вас вверху еще какой-то кусок кода есть, необходимый, чтобы {str_replace(&quot;//&quot;, &quot;/&quot;, $category-&gt;getUrl())} работала?</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-10T12:27:38Z</updated>
			<id>https://forum.readyscript.ru/post/10625/#p10625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10600/#p10600" />
			<content type="html"><![CDATA[<p>Все получилось, спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-07T08:42:44Z</updated>
			<id>https://forum.readyscript.ru/post/10600/#p10600</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10599/#p10599" />
			<content type="html"><![CDATA[<p>Ясно. Ну у меня на сайте это сделано. Вот так.<br /></p><div class="codebox"><pre><code>&lt;ul class=&quot;filter-checkbox_content rs-content&quot;&gt;
                {$values_objects=$prop-&gt;getAllowedValuesObjects()}
                {$i = 1}
                {foreach $prop-&gt;getAllowedValues() as $key =&gt; $value}
                    &lt;li style=&quot;order: {$i++};&quot;&gt;
                        {$data=$filters[$prop.id]}
                        {if !empty($data)}
                            {foreach $data as $k=&gt;$v}
                                {$data[$k]=urldecode($v)}
                            {/foreach}
                        {/if}
                        &lt;input type=&quot;checkbox&quot; {if is_array($filters[$prop.id]) &amp;&amp; in_array($key, $filters[$prop.id])}checked{/if} name=&quot;pf[{$prop.id}][]&quot; value=&quot;{$key}&quot; class=&quot;cb&quot; id=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;
                        &lt;label for=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;&lt;a href=&quot;{str_replace(&quot;//&quot;, &quot;/&quot;, $category-&gt;getUrl())}{if $prop.alias}{$prop.alias}{else}{$prop.id}{/if}_{if $values_objects[$key].alias}{$values_objects[$key].alias}{else}{$values_objects[$key].id}{/if}/&quot;&gt;{$value}&lt;/a&gt;&lt;/label&gt;
                    &lt;/li&gt;
                {/foreach}
            &lt;/ul&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-07T07:43:40Z</updated>
			<id>https://forum.readyscript.ru/post/10599/#p10599</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10598/#p10598" />
			<content type="html"><![CDATA[<p>Это обычный фильтр по характеристикам <a href="https://kupioboi.ru/catalog/oboi/">https://kupioboi.ru/catalog/oboi/</a><br />Платная тема Яркая.</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-06T15:00:44Z</updated>
			<id>https://forum.readyscript.ru/post/10598/#p10598</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10597/#p10597" />
			<content type="html"><![CDATA[<p>А что это за фильтр и на какой странице он применяется.</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-06T14:58:54Z</updated>
			<id>https://forum.readyscript.ru/post/10597/#p10597</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10596/#p10596" />
			<content type="html"><![CDATA[<p>У меня другой вывод в шаблоне<br /></p><div class="codebox"><pre><code>{* Шаблон для фильтра с типом - список *}

&lt;div class=&quot;filter filter-checkbox rs-type-multiselect {if $filters[$prop.id] || $prop.is_expanded}open{/if}&quot;&gt;
    &lt;a class=&quot;expand&quot;&gt;
        &lt;span class=&quot;right-arrow&quot;&gt;&lt;i class=&quot;fa fa-angle-down {if $basefilters.isnum != &#039;&#039; || (is_array($param.expanded) &amp;&amp; in_array(&#039;num&#039;, $param.expanded))} rotated{/if}&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/span&gt;
        &lt;p&gt;{$prop.title} {if $prop.unit}({$prop.unit}){/if}
            &lt;span class=&quot;filter-remove rs-remove hidden&quot; title=&quot;{t}Сбросить выбранные параметры{/t}&quot;&gt;&lt;i class=&quot;fa fa-times-circle&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;/a&gt;
    &lt;div class=&quot;detail&quot;&gt;

        &lt;ul class=&quot;filter-checkbox_selected rs-selected list-unstyled hidden&quot;&gt;&lt;/ul&gt;
        &lt;div class=&quot;filter-checkbox_container&quot;&gt;
            &lt;ul class=&quot;filter-checkbox_content list-unstyled rs-content&quot;&gt;
                {$i = 1}
                {foreach $prop-&gt;getAllowedValues() as $key =&gt; $value}
                    &lt;li style=&quot;order: {$i++};&quot; class=&quot;filter_block {if isset($filters_allowed_sorted[$prop.id][$key]) &amp;&amp; ($filters_allowed_sorted[$prop.id][$key] == false)}disabled-property{/if}&quot;&gt;
                        &lt;input type=&quot;checkbox&quot; {if is_array($filters[$prop.id]) &amp;&amp; in_array($key, $filters[$prop.id])}checked{/if} name=&quot;pf[{$prop.id}][]&quot; value=&quot;{$key}&quot; class=&quot;cb&quot; id=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;
                        &lt;label for=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;
                        
                            &lt;a href=&quot;{$prop.alias}_ЗНАЧЕНИЕ/&quot;&gt;{$value}&lt;/a&gt;
                        
                    &lt;/li&gt;
                {/foreach}
            &lt;/ul&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;</code></pre></div><p>Что вместо ЗНАЧЕНИЯ вставить нужно? &lt;a href=&quot;{$prop.alias}_ЗНАЧЕНИЕ/&quot;&gt;{$value}&lt;/a&gt;</p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-06T14:47:36Z</updated>
			<id>https://forum.readyscript.ru/post/10596/#p10596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10591/#p10591" />
			<content type="html"><![CDATA[<p>Ну вы привели выше пример с pf[1][] поэтому для него я и дал это.<br /></p><div class="codebox"><pre><code>{* Получаем текущую категорию *}
{$maindir=$product-&gt;getMainDir()}
{$url=$maindir-&gt;getUrl()} {* Получаем нужный адрес *}


{* Получаем характеристики внутри цикла перебора характеристик *}
{foreach $product.properties as $data}
                &lt;div class=&quot;propertyGroup&quot;&gt;
                    &lt;h2&gt;&lt;span&gt;{$data.group.title|default:t(&quot;Характеристики&quot;)}&lt;/span&gt;&lt;/h2&gt;
                    &lt;table class=&quot;kv&quot;&gt;
                        {foreach from=$data.properties item=property}
                            {assign var=prop_value value=$property-&gt;textView()}
                                &lt;tr&gt;
                                    &lt;td class=&quot;key&quot;&gt;&lt;span&gt;{$property.title}&lt;/span&gt;
                                        {if $property.description}
                                            &lt;a class=&quot;popover-button&quot;
                                               data-toggle=&quot;popover&quot;
                                               tabindex=&quot;0&quot;
                                               data-trigger=&quot;manual&quot;
                                               data-content=&quot;{$property.description}&quot;&gt; ? &lt;/a&gt;
                                        {/if}
                                    &lt;/td&gt;
                                    &lt;td class=&quot;value&quot;&gt;&lt;a href=&quot;{$url}{$property.alias}_{$prop_value}/&quot;&gt;{$prop_value}&lt;/a&gt; {$property.unit}&lt;/td&gt; {* Ссылка тут *}
                                &lt;/tr&gt;
                        {/foreach}
                    &lt;/table&gt;
                &lt;/div&gt;
            {/foreach}</code></pre></div><p>Примерно так...</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-06T09:16:58Z</updated>
			<id>https://forum.readyscript.ru/post/10591/#p10591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10589/#p10589" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Закусило Александр пишет:</cite><blockquote><p>А что Вам мещает в получивщийся адрес дописать ?pf[1][]=1 ?</p></blockquote></div><p>если правильно понял, Вы предлагаете сделать так<br /></p><div class="codebox"><pre><code>&lt;label for=&quot;cb_{$prop.id}_{$value@iteration}&quot;&gt;
            &lt;a href=&quot;/catalog/oboi/?pf[1][]=1/&quot;&gt;{$value}&lt;/a&gt;&lt;/label&gt;  </code></pre></div><p>НО, так формируется ссылка &lt;a href=&quot;/catalog/oboi/?pf[1][]=1/&quot;&gt;Россия&lt;/a&gt;<br />которая соответственно дает переход на <a href="https://kupioboi.ru/catalog/oboi/?pf">https://kupioboi.ru/catalog/oboi/?pf</a>[1][]=1/ - то есть на дубль страницы, а не на <a href="https://kupioboi.ru/catalog/oboi/rodina-brenda_rossiya/">https://kupioboi.ru/catalog/oboi/rodina-brenda_rossiya/</a></p>]]></content>
			<author>
				<name><![CDATA[Владимир 1916]]></name>
				<uri>https://forum.readyscript.ru/user/417/</uri>
			</author>
			<updated>2019-11-06T07:49:27Z</updated>
			<id>https://forum.readyscript.ru/post/10589/#p10589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SEO-ссылки в фильтре]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10584/#p10584" />
			<content type="html"><![CDATA[<p>А что Вам мещает в получивщийся адрес дописать ?pf[1][]=1 ?</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2019-11-05T14:32:06Z</updated>
			<id>https://forum.readyscript.ru/post/10584/#p10584</id>
		</entry>
</feed>
