<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум ReadyScript &mdash; Список новостей с предпросмотром]]></title>
	<link rel="self" href="https://forum.readyscript.ru/feed/atom/topic/1309/" />
	<updated>2017-07-24T07:56:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.readyscript.ru/topic/1309/spisok-novostei-s-predprosmotrom/</id>
		<entry>
			<title type="html"><![CDATA[Re: Список новостей с предпросмотром]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/7530/#p7530" />
			<content type="html"><![CDATA[<p>Тогда Вам надо скопировать шаблон из <strong>/modules/atricle/view/preview_list.tpl</strong> в <strong>/templates/default/moduleview/atricle/preview_list.tpl</strong>.<br />После этого Вам можно будет править клонированный шаблон.<br />Меняем:<br /></p><div class="codebox"><pre><code>{if !empty($list)}
    &lt;ul class=&quot;articles&quot;&gt;
    {foreach from=$list item=item}
        &lt;li {$item-&gt;getDebugAttributes()}&gt;
            &lt;span class=&quot;date&quot;&gt;{$item.dateof|date_format:&quot;d.m.Y H:i&quot;}&lt;/span&gt;&lt;br&gt;
            &lt;a class=&quot;link&quot; href=&quot;{$item-&gt;getUrl()}&quot;&gt;
                &lt;span class=&quot;title&quot;&gt;{$item.title}&lt;/span&gt;&lt;br&gt;
                &lt;div class=&quot;preview&quot;&gt;{if !empty($item.image)}&lt;img src=&quot;{$item.__image-&gt;getUrl(120,120,&#039;xy&#039;)}&quot; alt=&quot;{$item.title}&quot; class=&quot;image&quot;/&gt;{/if} 
                {$item-&gt;getPreview()}&lt;/div&gt;
            &lt;/a&gt;
        &lt;/li&gt;
    {/foreach}
    &lt;/ul&gt;

    {include file=&quot;%THEME%/paginator.tpl&quot;}
{else}
    &lt;p class=&quot;empty&quot;&gt;{t}Не найдено ни одной статьи{/t}&lt;/p&gt;
{/if} </code></pre></div><p>На:</p><div class="codebox"><pre><code>{if !empty($list)}
    &lt;ul class=&quot;articles&quot;&gt;
    {foreach from=$list item=item}
        &lt;li {$item-&gt;getDebugAttributes()}&gt;
            &lt;span class=&quot;date&quot;&gt;{$item.dateof|date_format:&quot;d.m.Y H:i&quot;}&lt;/span&gt;&lt;br&gt;
            &lt;a class=&quot;link&quot; href=&quot;{$item-&gt;getUrl()}&quot;&gt;
                &lt;span class=&quot;title&quot;&gt;{$item.title}&lt;/span&gt;
            &lt;/a&gt;
        &lt;/li&gt;
    {/foreach}
    &lt;/ul&gt;

    {include file=&quot;%THEME%/paginator.tpl&quot;}
{else}
    &lt;p class=&quot;empty&quot;&gt;{t}Не найдено ни одной статьи{/t}&lt;/p&gt;
{/if} </code></pre></div>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2017-07-24T07:56:47Z</updated>
			<id>https://forum.readyscript.ru/post/7530/#p7530</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Список новостей с предпросмотром]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/7516/#p7516" />
			<content type="html"><![CDATA[<p>Классическая</p>]]></content>
			<author>
				<name><![CDATA[Сергей]]></name>
				<uri>https://forum.readyscript.ru/user/230/</uri>
			</author>
			<updated>2017-07-17T16:33:04Z</updated>
			<id>https://forum.readyscript.ru/post/7516/#p7516</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Список новостей с предпросмотром]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/7507/#p7507" />
			<content type="html"><![CDATA[<p>Можно, Вы можете перегрузить шаблон списка новостей и подменить на свой. У Вас какая тема оформления.</p>]]></content>
			<author>
				<name><![CDATA[Закусило Александр]]></name>
				<uri>https://forum.readyscript.ru/user/20/</uri>
			</author>
			<updated>2017-07-17T07:41:23Z</updated>
			<id>https://forum.readyscript.ru/post/7507/#p7507</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Список новостей с предпросмотром]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/7505/#p7505" />
			<content type="html"><![CDATA[<p>Когда заходишь в категорию Новости, они отображаются Заголовок + краткий текст.</p><p>Вопрос: можно ли сделать чтобы отображался список только заголовков?</p>]]></content>
			<author>
				<name><![CDATA[Сергей]]></name>
				<uri>https://forum.readyscript.ru/user/230/</uri>
			</author>
			<updated>2017-07-14T12:04:22Z</updated>
			<id>https://forum.readyscript.ru/post/7505/#p7505</id>
		</entry>
</feed>
