<?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/2260/kastomnaya-karta-saita/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/2260/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Кастомная карта сайта».]]></description>
		<lastBuildDate>Wed, 09 Nov 2022 17:10:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11847/#p11847</link>
			<description><![CDATA[<p>Вам нужен вот этот хук <a href="https://readyscript.ru/dev-manual/dev_hooks.html#dev_hooks_getpages">https://readyscript.ru/dev-manual/dev_h … s_getpages</a> там можно отфитровать список из входящиго параметра getpages</p>]]></description>
			<author><![CDATA[null@example.com (Закусило Александр)]]></author>
			<pubDate>Wed, 09 Nov 2022 17:10:16 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11847/#p11847</guid>
		</item>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11843/#p11843</link>
			<description><![CDATA[<p>/**<br />&nbsp; &nbsp; &nbsp;* Отдает составные части sitemap<br />&nbsp; &nbsp; &nbsp;*<br />&nbsp; &nbsp; &nbsp;* @return void<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; function sitemapChunkToOutput($chunk)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $app = \RS\Application\Application::getInstance();<br />&nbsp; &nbsp; &nbsp; &nbsp; $chunk_file = $this-&gt;getChunkFilepath($chunk);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; if (file_exists($chunk_file)) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $content_type = $this-&gt;gzip ? &#039;application/x-gzip&#039; : &#039;text/xml&#039;;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $app-&gt;headers<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;addHeader(&#039;Content-Type&#039;, $content_type)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;sendHeaders();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; readfile($chunk_file);<br />&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $app-&gt;showException(404, t(&#039;Файл не найден&#039;));<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (Дмитрий)]]></author>
			<pubDate>Tue, 01 Nov 2022 13:50:23 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11843/#p11843</guid>
		</item>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11842/#p11842</link>
			<description><![CDATA[<div class="quotebox"><cite>Закусило Александр пишет:</cite><blockquote><p>Так, а в Апи, что там в методе sitemapChunkToOutput?</p></blockquote></div><p>К сожалению мозгов не хватает понять, что нужно?)))</p>]]></description>
			<author><![CDATA[null@example.com (Дмитрий)]]></author>
			<pubDate>Tue, 01 Nov 2022 13:46:49 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11842/#p11842</guid>
		</item>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11841/#p11841</link>
			<description><![CDATA[<p>Так, а в Апи, что там в методе sitemapChunkToOutput?</p>]]></description>
			<author><![CDATA[null@example.com (Закусило Александр)]]></author>
			<pubDate>Tue, 01 Nov 2022 12:48:44 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11841/#p11841</guid>
		</item>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11840/#p11840</link>
			<description><![CDATA[<p>namespace Sitemap\Controller\Front;</p><p>class Sitemap extends \RS\Controller\Front<br />{<br />&nbsp; &nbsp; public<br />&nbsp; &nbsp; &nbsp; &nbsp; $site_id,<br />&nbsp; &nbsp; &nbsp; &nbsp; $map_type,<br />&nbsp; &nbsp; &nbsp; &nbsp; $gzip,<br />&nbsp; &nbsp; &nbsp; &nbsp; $chunk;</p><p>&nbsp; &nbsp; function init()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;site_id = $this-&gt;url-&gt;request(&#039;site_id&#039;, TYPE_INTEGER);<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;map_type = $this-&gt;url-&gt;request(&#039;type&#039;, TYPE_STRING);<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;gzip = $this-&gt;url-&gt;request(&#039;pack&#039;, TYPE_STRING) == &#039;gz&#039;;<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;chunk = $this-&gt;url-&gt;request(&#039;chunk&#039;, TYPE_STRING);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;wrapOutput(false);<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; /**<br />&nbsp; &nbsp; &nbsp;* Генерирует и возвращает главный файл sitemap.xml<br />&nbsp; &nbsp; &nbsp;*/<br />&nbsp; &nbsp; function actionIndex()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $api = new \Sitemap\Model\Api($this-&gt;site_id, $this-&gt;map_type, $this-&gt;gzip);<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($this-&gt;chunk != &#039;&#039;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $api-&gt;sitemapChunkToOutput((int)$this-&gt;chunk);<br />&nbsp; &nbsp; &nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $api-&gt;sitemapToOutput();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return;<br />&nbsp; &nbsp; }<br />}</p>]]></description>
			<author><![CDATA[null@example.com (Дмитрий)]]></author>
			<pubDate>Wed, 26 Oct 2022 06:20:30 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11840/#p11840</guid>
		</item>
		<item>
			<title><![CDATA[Re: Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11839/#p11839</link>
			<description><![CDATA[<div class="quotebox"><cite>Дмитрий пишет:</cite><blockquote><p>Здравствуйте. Подскажите, можно мне как-то подпилить модуль sitemap, чтобы убрать автоматическое добавление категорий и товаров в него? Или в orm editore галочку сделать товарам и категориям (добавлять или нет)</p></blockquote></div><p>Покажите код front контроллера</p>]]></description>
			<author><![CDATA[null@example.com (Закусило Александр)]]></author>
			<pubDate>Sun, 23 Oct 2022 15:22:02 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11839/#p11839</guid>
		</item>
		<item>
			<title><![CDATA[Кастомная карта сайта]]></title>
			<link>https://forum.readyscript.ru/post/11838/#p11838</link>
			<description><![CDATA[<p>Здравствуйте. Подскажите, можно мне как-то подпилить модуль sitemap, чтобы убрать автоматическое добавление категорий и товаров в него? Или в orm editore галочку сделать товарам и категориям (добавлять или нет)</p>]]></description>
			<author><![CDATA[null@example.com (Дмитрий)]]></author>
			<pubDate>Tue, 18 Oct 2022 05:52:27 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/11838/#p11838</guid>
		</item>
	</channel>
</rss>
