<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Движок сайтов S2 — Сортировка тегов по алфавиту]]></title>
	<link rel="self" href="https://s2cms.ru/forum/feed/atom/topic/37/"/>
	<updated>2011-09-25T15:35:30Z</updated>
	<generator>PunBB</generator>
	<id>https://s2cms.ru/forum/topic/37/</id>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/254/#p254"/>
			<content type="html"><![CDATA[<p>В данный момент там одинаковые версии.</p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-09-25T15:35:30Z</updated>
			<id>https://s2cms.ru/forum/post/254/#p254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/253/#p253"/>
			<content type="html"><![CDATA[<p>Благодарю, обновляться не стал, сделал всё по <a href="http://s2cms.ru/trac/browser/trunk">http://s2cms.ru/trac/browser/trunk</a></p>]]></content>
			<author>
				<name><![CDATA[I2V]]></name>
				<uri>https://s2cms.ru/forum/user/14/</uri>
			</author>
			<updated>2011-09-25T15:34:11Z</updated>
			<id>https://s2cms.ru/forum/post/253/#p253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/249/#p249"/>
			<content type="html"><![CDATA[<p>Добавил класс tags_list.</p><p>Качать отсюда: <a href="http://s2cms.ru/downloads/development/">http://s2cms.ru/downloads/development/</a></p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-09-25T06:54:33Z</updated>
			<id>https://s2cms.ru/forum/post/249/#p249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/247/#p247"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Roman пишет:</cite><blockquote><p>Я оберну ссылки в отдельный &lt;div class=&quot;tag_list&quot;&gt;. Пойдет?</p></blockquote></div><p>Да, было бы здорово.</p><p>Насчёт блога понял.</p>]]></content>
			<author>
				<name><![CDATA[I2V]]></name>
				<uri>https://s2cms.ru/forum/user/14/</uri>
			</author>
			<updated>2011-09-24T23:43:56Z</updated>
			<id>https://s2cms.ru/forum/post/247/#p247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/246/#p246"/>
			<content type="html"><![CDATA[<p>Я оберну ссылки в отдельный &lt;div class=&quot;tag_list&quot;&gt;. Пойдет?</p><p>Отображение количества страниц с данным тегом - нетривиальная задача. Дело в том, что для каждой страницы нужно пройтись по дереву к корню и просмотреть, нет ли среди родителей скрытого раздела. Для этого либо нужно тратить много ресурсов, либо что-то куда-то активно кешировать.</p><p>В общем, пока таких возможностей нет.</p><p>В блоге всё проще, потому что там нет древовидной структуры.</p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-09-24T16:15:20Z</updated>
			<id>https://s2cms.ru/forum/post/246/#p246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/245/#p245"/>
			<content type="html"><![CDATA[<p>Да, хотелось бы отдельный стиль...<br />Мне просто нужно значительно увеличить шрифт ссылок тегов, где они выводятся все. (не затрагивая обычные ссылки).</p><p>Да, и ещё - возможно ли сделать отображение кол-ва материалов с таким тегом, как реализованно в тегах блога!?</p>]]></content>
			<author>
				<name><![CDATA[I2V]]></name>
				<uri>https://s2cms.ru/forum/user/14/</uri>
			</author>
			<updated>2011-09-24T08:17:24Z</updated>
			<id>https://s2cms.ru/forum/post/245/#p245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/230/#p230"/>
			<content type="html"><![CDATA[<p>Сейчас, похоже, нет. А нужно?</p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-09-13T14:16:18Z</updated>
			<id>https://s2cms.ru/forum/post/230/#p230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/229/#p229"/>
			<content type="html"><![CDATA[<p>Роман, а возможно ли задать свой стиль для ссылок тегов на странице вывода всех тегов?</p>]]></content>
			<author>
				<name><![CDATA[I2V]]></name>
				<uri>https://s2cms.ru/forum/user/14/</uri>
			</author>
			<updated>2011-09-13T11:13:27Z</updated>
			<id>https://s2cms.ru/forum/post/229/#p229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/222/#p222"/>
			<content type="html"><![CDATA[<p>Теперь уже точно все ок. Замучил я вас. Спасибо вам, что там оперативно откликаетесь на чужие проблемы.</p>]]></content>
			<author>
				<name><![CDATA[tataRen]]></name>
				<uri>https://s2cms.ru/forum/user/16/</uri>
			</author>
			<updated>2011-08-25T21:45:59Z</updated>
			<id>https://s2cms.ru/forum/post/222/#p222</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/221/#p221"/>
			<content type="html"><![CDATA[<p>Исправил:</p><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE extension SYSTEM &quot;ext-1.0.dtd&quot;&gt;

&lt;extension for=&quot;S2&quot; engine=&quot;1.0&quot;&gt;
    &lt;id&gt;my_test&lt;/id&gt;
    &lt;title&gt;Test extension&lt;/title&gt;
    &lt;version&gt;1.0a&lt;/version&gt;
    &lt;description&gt;Change sort order in tags&lt;/description&gt;
    &lt;author&gt;Roman Parpalak&lt;/author&gt;

    &lt;minversion&gt;1.0a5&lt;/minversion&gt;
    &lt;maxtestedon&gt;1.0a6&lt;/maxtestedon&gt;

    &lt;hooks&gt;
        &lt;hook id=&quot;fn_s2_make_tags_pages_pre_get_arts_qr, fn_s2_parse_page_url_pre_get_children_qr&quot;&gt;&lt;![CDATA[
$sort_order = SORT_ASC;
$test_articles_count = 0;
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_add_subsection&quot;&gt;&lt;![CDATA[
$test_subsection_sort[] = $row[&#039;title&#039;];
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_pre_merge&quot;&gt;&lt;![CDATA[
if (!empty($test_subsection_sort))
    array_multisort($test_subsection_sort, $sort_order, $subsections);
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_add_subarticle, fn_s2_parse_page_url_add_subarticle&quot;&gt;&lt;![CDATA[
$sort_array[$test_articles_count] = $row[&#039;title&#039;];
$subarticles[$test_articles_count][&#039;time&#039;] = $subarticles[$test_articles_count][&#039;excerpt&#039;] = &#039;&#039;;
$test_articles_count++;
        ]]&gt;&lt;/hook&gt;
    &lt;/hooks&gt;
&lt;/extension&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-08-25T16:33:38Z</updated>
			<id>https://s2cms.ru/forum/post/221/#p221</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/220/#p220"/>
			<content type="html"><![CDATA[<p>Оказалось, не все в порядке. Вот такие ошибки выдает вверху страницы:<br /></p><div class="codebox"><pre><code>Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code on line 10

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code:10) in Z:\home\s2.ru\www\_include\functions.php on line 547

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code:10) in Z:\home\s2.ru\www\_include\functions.php on line 548</code></pre></div><p>и такое внизу:<br /></p><div class="codebox"><pre><code>Warning: Cannot modify header information - headers already sent by (output started at Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code:10) in Z:\home\s2.ru\www\index.php on line 188

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code:10) in Z:\home\s2.ru\www\index.php on line 189

Warning: Cannot modify header information - headers already sent by (output started at Z:\home\s2.ru\www\_include\articles.php(444) : eval()&#039;d code:10) in Z:\home\s2.ru\www\index.php on line 190</code></pre></div>]]></content>
			<author>
				<name><![CDATA[tataRen]]></name>
				<uri>https://s2cms.ru/forum/user/16/</uri>
			</author>
			<updated>2011-08-25T16:25:26Z</updated>
			<id>https://s2cms.ru/forum/post/220/#p220</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/219/#p219"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Roman пишет:</cite><blockquote><p>Надеюсь, на этом всё заработает как надо.</p></blockquote></div><p>Да, теперь, вроде, все работает как надо. Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[tataRen]]></name>
				<uri>https://s2cms.ru/forum/user/16/</uri>
			</author>
			<updated>2011-08-25T15:55:55Z</updated>
			<id>https://s2cms.ru/forum/post/219/#p219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/216/#p216"/>
			<content type="html"><![CDATA[<p>А, понял. Вам опять нужно обновить articles.php. И теперь расширение стало таким:</p><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE extension SYSTEM &quot;ext-1.0.dtd&quot;&gt;

&lt;extension for=&quot;S2&quot; engine=&quot;1.0&quot;&gt;
    &lt;id&gt;my_test&lt;/id&gt;
    &lt;title&gt;Test extension&lt;/title&gt;
    &lt;version&gt;1.0a&lt;/version&gt;
    &lt;description&gt;Change sort order in tags&lt;/description&gt;
    &lt;author&gt;Roman Parpalak&lt;/author&gt;

    &lt;minversion&gt;1.0a5&lt;/minversion&gt;
    &lt;maxtestedon&gt;1.0a5&lt;/maxtestedon&gt;

    &lt;hooks&gt;
        &lt;hook id=&quot;fn_s2_make_tags_pages_pre_get_arts_qr, fn_s2_parse_page_url_pre_get_children_qr&quot;&gt;&lt;![CDATA[
$sort_order = SORT_ASC;
$test_articles_count = 0;
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_add_subsection&quot;&gt;&lt;![CDATA[
$test_subsection_sort[] = $row[&#039;title&#039;];
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_pre_merge&quot;&gt;&lt;![CDATA[
array_multisort($test_subsection_sort, $sort_order, $subsections);
        ]]&gt;&lt;/hook&gt;

        &lt;hook id=&quot;fn_s2_make_tags_pages_add_subarticle, fn_s2_parse_page_url_add_subarticle&quot;&gt;&lt;![CDATA[
$sort_array[$test_articles_count] = $row[&#039;title&#039;];
$subarticles[$test_articles_count][&#039;time&#039;] = $subarticles[$test_articles_count][&#039;excerpt&#039;] = &#039;&#039;;
$test_articles_count++;
        ]]&gt;&lt;/hook&gt;
    &lt;/hooks&gt;
&lt;/extension&gt;</code></pre></div><p>Надеюсь, на этом всё заработает как надо.</p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-08-23T16:52:57Z</updated>
			<id>https://s2cms.ru/forum/post/216/#p216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/215/#p215"/>
			<content type="html"><![CDATA[<p>Удалил/установил. Никаких изменений. Они располагаются в порядке добавления. Удалил все разделы из тега и добавил в другом порядке - на странице они стали в новом порядке.</p>]]></content>
			<author>
				<name><![CDATA[tataRen]]></name>
				<uri>https://s2cms.ru/forum/user/16/</uri>
			</author>
			<updated>2011-08-23T15:15:48Z</updated>
			<id>https://s2cms.ru/forum/post/215/#p215</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Сортировка тегов по алфавиту]]></title>
			<link rel="alternate" href="https://s2cms.ru/forum/post/214/#p214"/>
			<content type="html"><![CDATA[<p>Не могу воспроизвести у себя, чтобы подразделы на странице тега шли в обратном порядке.</p><p>Вы уверены, что изменения из manifest.xml были загружены? Удалите и установите это расширение заново (удалять можно, так как это расширение никаких ценных данных не собирало).</p>]]></content>
			<author>
				<name><![CDATA[Роман]]></name>
				<uri>https://s2cms.ru/forum/user/2/</uri>
			</author>
			<updated>2011-08-23T14:37:00Z</updated>
			<id>https://s2cms.ru/forum/post/214/#p214</id>
		</entry>
</feed>
