<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Как реализовать подргузку новых элементов в list (любой) бесконечно</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 22 Apr 2026 17:11:33 -0000</pubDate>

		<item>
			<title>Kopusha</title>
			<description><![CDATA[<p>Вот еще раз попробую <a href="https://www.google.com/search?q=itemtype%3D%22http%3A%2F%2Fschema.org%2FWebPage%22&amp;rlz=1C5CHFA_enUA844UA844&amp;oq=itemtype%3D%22http%3A%2F%2Fschema.org%2FWebPage%22&amp;aqs=chrome..69i57j0i22i30l3.283j0j7&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow">посоветовать</a></p>
]]></description>
			<pubDate>Paz, 17 Nis 2022 19:09:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=9157&d=0#post45615]]></link>
		</item>
		<item>
			<title>ed.moriarti</title>
			<description><![CDATA[<p>А это что значит?</p>

<p><code class="php plain" style="white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">itemtype=</code><code class="php string" style="white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">"<a href="http://schema.org/WebPage" rel="nofollow" style="font-size:1em;background-image:none;border:0px;float:none;height:auto;line-height:1.3em;width:auto;">http://schema.org/WebPage</a>"</code><code class="php plain" style="white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">&gt;</code></p>
]]></description>
			<pubDate>Paz, 17 Nis 2022 09:41:50 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=9157&d=0#post45614]]></link>
		</item>
		<item>
			<title>Kopusha</title>
			<description><![CDATA[<p>это один из вариантов оформления - вся документация есть на https://infinite-scroll.com/</p>

<p>1 Надо подключить js плагин infiniteScroll</p>

<p>2 всюду где надо подрузку в tpl дописать class<br /><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">&lt;div </code><code class="php keyword" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">class</code><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">=</code><code class="php string" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">"container-scrl"</code><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">&gt; в который мы обрамляем то что будет подгружать</code></p>

<p><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">&lt;article </code><code class="php keyword" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">class</code><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">=</code><code class="php string" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">"post-scrl" элементы которые подгружаем в цикле</code></p>

<p><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">&lt;a </code><code class="php keyword" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">class</code><code class="php plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">=</code><code class="php string" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">"pagination__next" триггер по которому начинаем подгружать</code></p>

<p>3 надо инициализировать действие плагина кодом js</p>

<div class="line number1 index0 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript keyword" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">if</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">( $(</code><code class="jscript string" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">'.pagination__next'</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">).length )         </code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">// Если есть следующая страница в пагинации</code></div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">{</code></div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">$container = $(</code><code class="jscript string" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">'.container-scrl'</code><code class="jscript plain" style="font-size:13.5px;background-color:rgb(250,250,250);white-space:pre;margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">);//</code><span style="color:rgb(51,51,51);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:13.5px;white-space:pre;background-color:rgb(250,250,250);">в который мы обрамляем то что будет подгружать</span></div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"> </div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><span style="color:rgb(51,51,51);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:13.5px;white-space:pre;background-color:rgb(250,250,250);">и вперед</span></div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;">
<div class="line number7 index6 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;"> </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">$container.infiniteScroll({</code></div>

<div class="line number8 index7 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">// options</code></div>

<div class="line number9 index8 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">path: </code><code class="jscript string" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">'.pagination__next'</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">,</code></div>

<div class="line number10 index9 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">append: </code><code class="jscript string" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(234,124,30);float:none;height:auto;line-height:1.3em;width:auto;">'.post-scrl'</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">,</code></div>

<div class="line number11 index10 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">history: </code><code class="jscript keyword" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">false</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">,</code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">//не меняем урл при подгрузке что бы не путать пользователя</code></div>

<div class="line number12 index11 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">prefill: </code><code class="jscript keyword" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(167,29,93);float:none;height:auto;line-height:1.3em;width:auto;font-weight:bold;">true</code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">,</code></div>

<div class="line number13 index12 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">scrollThreshold: 800,</code></div>

<div class="line number14 index13 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">//history: 'push', //прописывает в историю и титл стр текущую стр</code></div>

<div class="line number15 index14 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">//historyTitle: true,</code></div>

<div class="line number16 index15 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">      </code><code class="jscript comments" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(139,139,139);float:none;height:auto;line-height:1.3em;width:auto;">//button: '.view-more-button',//пока кнопку убрал</code></div>

<div class="line number17 index16 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript spaces" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;float:none;height:auto;line-height:1.3em;width:auto;">    </code><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">});</code></div>

<div class="line number17 index16 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"> </div>

<div class="line number17 index16 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><code class="jscript plain" style="margin-right:0px;margin-left:0px;padding:0px;border-width:0px;background-image:none;font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(51,51,51);float:none;height:auto;line-height:1.3em;width:auto;">читаем документацию и пробуем.</code></div>

<div class="line number17 index16 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"> </div>

<div class="line number17 index16 alt2" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"><font color="#333333">И да, в каждый лист где надо убрать пагинацию, само оно только в сказке.</font></div>
</div>

<div class="line number2 index1 alt1" style="font-size:13.5px;background-color:rgb(250,250,250);font-family:Monaco, Menlo, Consolas, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;padding-right:1em;padding-left:0em;background-image:none;float:none;height:auto;line-height:1.3em;width:auto;white-space:pre;"> </div>
]]></description>
			<pubDate>Paz, 17 Nis 2022 07:45:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=9157&d=0#post45613]]></link>
		</item>
		<item>
			<title>ed.moriarti</title>
			<description><![CDATA[<p>А где он этот main.js я что-то не нашёл...</p>

<p>и в какой TPL этот код прописывать нужно? В каждый list где есть пажинация?</p>
]]></description>
			<pubDate>Paz, 17 Nis 2022 05:57:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=9157&d=0#post45612]]></link>
		</item>
		<item>
			<title>Kopusha</title>
			<description><![CDATA[<p>подключаем js плагин jquery.infinitescroll.js<br />
дописываем такой код в свой main.js </p>

<p> </p>

<pre class="brush:jscript;gutter:false;toolbar:false;">
if( $('.pagination__next').length )         // Если есть следующая страница в пагинации
{

	//infiniteScroll in Folio
	$container = $('.container-scrl');
	
	$container.infiniteScroll({
	  // options
	  path: '.pagination__next',
	  append: '.post-scrl',
	  history: false,//не меняем урл при подгрузке что бы не путать пользователя
	  prefill: true,
	  scrollThreshold: 800,
	  //history: 'push', //прописывает в историю и титл стр текущую стр
	  //historyTitle: true,
	  //button: '.view-more-button',//пока кнопку убрал
	});

	//дело в том что на догруженных элементах могут быть свои js которые не включаться
	//включить их надо после загрузки например как ниже
	//это специфика для конкретного сайта, тебе это может и не нужно, но как принцип я оставил
	$container.on( 'append.infiniteScroll', function( event, response, path, items ) {//включаем нужные функции для вновьсозданных объектов
				        $('.files-list-grid .files-list-grid-wrapper').css("opacity", 0);
				        $('.stories-list-grid .stories-list-grid-wrapper').css("opacity", 0);
				        // set a timer to re-apply the plugin
				        if (resizeTimer) clearTimeout(resizeTimer);
				        resizeTimer = setTimeout(collage, 200);
				        
	});

	$container.on( 'append.infiniteScroll', function( event, response, path, items ) {//включаем нужные функции для вновьсозданных бъектов
	  jQuery("[data-toggle=popover]").popover();
	  jQuery("[data-toggle=tooltip]").tooltip();
	});

	// просмотр историй без пагинации для гугланалитики
	var link = document.createElement('a');
	
	$container.on( 'append.infiniteScroll', function( event, response, path ) {
	  link.href = path;
	  ga( 'set', 'page', link.pathname );
	  ga( 'send', 'pageview' );
	});
	
}
</pre>

<p>и сама TPL</p>

<pre class="brush:php;gutter:false;toolbar:false;">
&lt;div class="container-scrl"&gt;	
&lt;!-- one story --&gt;	
&lt;!-- BEGIN: PRD_ROWS --&gt;
&lt;!-- article --&gt;		
&lt;article class="storiesart portstories-item post-scrl" itemprop="itemListElement" itemscope itemtype="http://schema.org/WebPage"&gt;
&lt;!-- тут собственно сама запись --&gt;			
&lt;!-- важно обратить внимание на класс post-scrl в теге article --&gt;	
&lt;/article&gt;
&lt;!-- article --&gt;
&lt;!-- END: PRD_ROWS --&gt;
&lt;!-- one story --&gt;	
&lt;/div&gt;	

&lt;!-- PAGINATION --&gt;	
		&lt;!-- IF {PAGENAV_COUNT} &gt; 1 --&gt;
		&lt;a class="pagination__next" style="display: none" href="https://www.cotonti.com/{PHP.sys.canonical_url}&amp;d=2" title="Load more stories"&gt;Load more stories&lt;/a&gt;
		&lt;!-- ENDIF --&gt;
&lt;!-- PAGINATION --&gt;	
&lt;!-- важно обратить внимание что что если есть постраничное разбитие - то есть есть более 1 страницы - сработает js infiniteScroll jquery.infinitescroll.js --&gt;
</pre>

<p> </p>
]]></description>
			<pubDate>Cmt, 16 Nis 2022 07:01:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=9157&d=0#post45611]]></link>
		</item>
	</channel>
</rss>