<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Drupal 7 - настройка ЦМС]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=808&amp;type=atom" />
	<updated>2017-02-16T12:15:09Z</updated>
	<generator>PunBB</generator>
	<id>http://itpmr.ru/viewtopic.php?id=808</id>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124651#p124651" />
			<content type="html"><![CDATA[<p>Скину весь свой файл&nbsp; sites/all/themes/news_center/templates/node.tpl.php </p><div class="codebox"><pre><code>&lt;?php
/**
 * @file
 * Zen theme&#039;s implementation to display a node.
 *
 * Available variables:
 * - $title: the (sanitized) title of the node.
 * - $content: An array of node items. Use render($content) to print them all,
 *   or print a subset such as render($content[&#039;field_example&#039;]). Use
 *   hide($content[&#039;field_example&#039;]) to temporarily suppress the printing of a
 *   given element.
 * - $user_picture: The node author&#039;s picture from user-picture.tpl.php.
 * - $date: Formatted creation date. Preprocess functions can reformat it by
 *   calling format_date() with the desired parameters on the $created variable.
 * - $name: Themed username of node author output from theme_username().
 * - $node_url: Direct url of the current node.
 * - $display_submitted: Whether submission information should be displayed.
 * - $submitted: Submission information created from $name and $date during
 *   template_preprocess_node().
 * - $classes: String of classes that can be used to style contextually through
 *   CSS. It can be manipulated through the variable $classes_array from
 *   preprocess functions. The default values can be one or more of the
 *   following:
 *   - node: The current template type, i.e., &quot;theming hook&quot;.
 *   - node-[type]: The current node type. For example, if the node is a
 *     &quot;Blog entry&quot; it would result in &quot;node-blog&quot;. Note that the machine
 *     name will often be in a short form of the human readable label.
 *   - node-teaser: Nodes in teaser form.
 *   - node-preview: Nodes in preview mode.
 *   - view-mode-[mode]: The view mode, e.g. &#039;full&#039;, &#039;teaser&#039;...
 *   The following are controlled through the node publishing options.
 *   - node-promoted: Nodes promoted to the front page.
 *   - node-sticky: Nodes ordered above other non-sticky nodes in teaser
 *     listings.
 *   - node-unpublished: Unpublished nodes visible only to administrators.
 *   The following applies only to viewers who are registered users:
 *   - node-by-viewer: Node is authored by the user currently viewing the page.
 * - $title_prefix (array): An array containing additional output populated by
 *   modules, intended to be displayed in front of the main title tag that
 *   appears in the template.
 * - $title_suffix (array): An array containing additional output populated by
 *   modules, intended to be displayed after the main title tag that appears in
 *   the template.
 *
 * Other variables:
 * - $node: Full node object. Contains data that may not be safe.
 * - $type: Node type, i.e. story, page, blog, etc.
 * - $comment_count: Number of comments attached to the node.
 * - $uid: User ID of the node author.
 * - $created: Time the node was published formatted in Unix timestamp.
 * - $classes_array: Array of html class attribute values. It is flattened
 *   into a string within the variable $classes.
 * - $zebra: Outputs either &quot;even&quot; or &quot;odd&quot;. Useful for zebra striping in
 *   teaser listings.
 * - $id: Position of the node. Increments each time it&#039;s output.
 *
 * Node status variables:
 * - $view_mode: View mode, e.g. &#039;full&#039;, &#039;teaser&#039;...
 * - $teaser: Flag for the teaser state (shortcut for $view_mode == &#039;teaser&#039;).
 * - $page: Flag for the full page state.
 * - $promote: Flag for front page promotion state.
 * - $sticky: Flags for sticky post setting.
 * - $status: Flag for published status.
 * - $comment: State of comment settings for the node.
 * - $readmore: Flags true if the teaser content of the node cannot hold the
 *   main body content. Currently broken; see http://drupal.org/node/823380
 * - $is_front: Flags true when presented in the front page.
 * - $logged_in: Flags true when the current user is a logged-in member.
 * - $is_admin: Flags true when the current user is an administrator.
 *
 * Field variables: for each field instance attached to the node a corresponding
 * variable is defined, e.g. $node-&gt;body becomes $body. When needing to access
 * a field&#039;s raw values, developers/themers are strongly encouraged to use these
 * variables. Otherwise they will have to explicitly specify the desired field
 * language, e.g. $node-&gt;body[&#039;en&#039;], thus overriding any language negotiation
 * rule that was previously applied.
 *
 * @see template_preprocess()
 * @see template_preprocess_node()
 * @see zen_preprocess_node()
 * @see template_process()
 */
?&gt;
&lt;div id=&quot;node-&lt;?php print $node-&gt;nid; ?&gt;&quot; class=&quot;&lt;?php print $classes; ?&gt; clearfix&quot;&lt;?php print $attributes; ?&gt;&gt;


   &lt;?php if (!$page &amp;&amp; $title): ?&gt;
    &lt;div class=&quot;teaser-date&quot; &gt;
      &lt;div class=&quot;side&quot;&gt;
      &lt;div class=&quot;day&quot;&gt;&lt;?php print date(&quot;d&quot;,$created); ?&gt;&lt;/div&gt;
     &lt;div class=&quot;month&quot;&gt;&lt;?php 
     $month = array(&quot;01&quot;, &quot;02&quot;, &quot;03&quot;, &quot;04&quot;, &quot;05&quot;, &quot;06&quot;, &quot;07&quot;, &quot;08&quot;, &quot;09&quot;, &quot;10&quot;, &quot;11&quot;, &quot;12&quot;);     
     $monthru = array(&quot;янв.&quot;, &quot;февр.&quot;, &quot;марта&quot;, &quot;апр.&quot;, &quot;мая&quot;, &quot;июня&quot;, &quot;июля&quot;, &quot;авг.&quot;, &quot;сент.&quot;, &quot;окт.&quot;, &quot;нояб.&quot;, &quot;дек.&quot;);    
         print str_replace($month, $monthru, date(&quot;m&quot;,$created));
     ?&gt;&lt;/div&gt;
    &lt;div class=&quot;dayD&quot;&gt;&lt;?php print date(&quot;Y&quot;,$created); ?&gt;&lt;/div&gt;
      &lt;/div&gt; 
      &lt;div class=&quot;node-side&quot;&gt;
  &lt;?php endif; ?&gt;

  &lt;?php print $user_picture; ?&gt;
  
  &lt;?php print render($title_prefix); ?&gt;
  &lt;?php if (!$page &amp;&amp; $title): ?&gt;   
    &lt;h2&lt;?php print $title_attributes; ?&gt;&gt;&lt;a href=&quot;&lt;?php print $node_url; ?&gt;&quot;&gt;&lt;?php print $title; ?&gt;&lt;/a&gt;&lt;/h2&gt;
  &lt;?php endif; ?&gt;
  &lt;?php print render($title_suffix); ?&gt;

  &lt;?php if ($unpublished): ?&gt;
    &lt;div class=&quot;unpublished&quot;&gt;&lt;?php print t(&#039;Unpublished&#039;); ?&gt;&lt;/div&gt;
  &lt;?php endif; ?&gt;

  &lt;?php if ($display_submitted): ?&gt;
  
    &lt;div class=&quot;submitted&quot;&gt;
  
      &lt;?php if ($page) print $submitted; ?&gt;
    &lt;/div&gt;
  &lt;?php endif; ?&gt;

  &lt;div class=&quot;content&quot;&lt;?php print $content_attributes; ?&gt;&gt;
    &lt;?php
      // We hide the comments and links now so that we can render them later.
      hide($content[&#039;comments&#039;]);
      hide($content[&#039;links&#039;]);
      hide($content[&#039;field_image&#039;][1]);
      hide($content[&#039;field_image&#039;][2]);
      hide($content[&#039;field_image&#039;][3]);
.....
      print render($content);
    ?&gt;
  &lt;/div&gt;

  &lt;?php if ($page): ?&gt; 
     &lt;br&gt;
   
&lt;?php  print render($content[&#039;field_image&#039;][1]);    ?&gt;
&lt;?php  print render($content[&#039;field_image&#039;][2]);    ?&gt;
&lt;?php  print render($content[&#039;field_image&#039;][3]);    ?&gt;
...

    &lt;?php print render($content[&#039;links&#039;]); ?&gt;
  
    &lt;?php print render($content[&#039;comments&#039;]); ?&gt;
  
  &lt;?php endif; ?&gt;
  
 
  
  &lt;?php if (!$page &amp;&amp; $title): ?&gt;   
      &lt;/div&gt;   
    &lt;/div&gt;    
  &lt;?php endif; ?&gt;

&lt;/div&gt;&lt;!-- /.node --&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2017-02-16T12:15:09Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124651#p124651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124633#p124633" />
			<content type="html"><![CDATA[<p>Делаем новогоднюю шапку без пробелов (пустых мест) сверху и снизу.</p><p>screen-layout.css<br /></p><div class="codebox"><pre><code>#logo {
    display: block;
  &#039;  margin: 24px 48px;
    min-height: 73px;
}

#header .region-header {
    background: none repeat scroll 0 0 transparent;
    padding-top: 0px;
}

.region-top-area {
    float: right;
 &#039;   margin-right: 15px;
    margin-top: 5px;
}</code></pre></div><p>tablet-layout.css<br /></p><div class="codebox"><pre><code>#logo {
    margin-left: 0;
    margin-top: 0px;  &#039; было 10
    display: none;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-12-20T08:55:28Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124633#p124633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124603#p124603" />
			<content type="html"><![CDATA[<p>Фоторепортажи работают через модуль &quot;Colorbox&quot;, в <br />Управление » Конфигурация » Мультимедиа » Colorbox <br />выбрал Style&nbsp; пример 3. Похоже как в одноклассниках.</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-10-11T07:05:54Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124603#p124603</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124602#p124602" />
			<content type="html"><![CDATA[<p>Мультизагрузка фотографий в фотогаллерею</p><p>Multiupload Filefield Widget - для загрузки нескольких файлов.<br />Multiupload Imagefield Widget - для загрузки нескольких фото.</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-10-11T05:17:03Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124602#p124602</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124589#p124589" />
			<content type="html"><![CDATA[<p>Мучаем хлебные крошки с помощью модуля Custom breadcrumbs:<br />Мои настройки Управление » Конфигурация » Интерфейс пользователя - Custom breadcrumbs configuration:<br />Галочки у:</p><br /><div class="codebox"><pre><code>TAXONOMY STRUCTURE
Use the taxonomy hierarchy to set the breadcrumb trail for nodes and taxonomy pages
Append taxonomy breadcrumb trail to current breadcrumb for selected node types
Show vocabulary in breadcrumb trail
Show current taxonomy term in breadcrumb trail for node pages
Show current taxonomy term in breadcrumb trail on the taxonomy term page
Show current node title in taxonomy breadcrumb trail
Use taxonomy-based breadcrumbs for views
Use the taxonomy of nodes returned by a view to create the taxonomy breadcrumb


Include or exclude taxonomy-based breadcrumbs for the following node types - Include 


Node types to include or exclude -  Article


Vocabularies to exclude from custom breadcrumbs taxonomy -  Tags,  Горячая линия


HTML ELEMENT IDENTIFIERS
 Add a custom-breadcrumbs-home ID attribute to the home breadcrumb item.
 Add a numbered class attribute for each breadcrumb item.
 Add even and odd classes to breadcrumb items.


MODULE WEIGHTS
 Custom breadcrumbs for taxonomy
 Custom breadcrumbs
 Custom breadcrumbs for paths
 Custom breadcrumbs API
 Custom breadcrumbs for views</code></pre></div><p>-----<br />Этот модуль отображает тэги в крошках.<br />В общем лучше всего выключить все модули &quot;Custom breadcrumbs&quot; и &quot;Taxonomy breadcrumb&quot;.<br />Крошки выглядят пока так: &quot;Главная › Рыбница ›&quot;</p><p>При включенном &quot;Taxonomy breadcrumb&quot; крошка с тегом (например #Выборы в Госдуму РФ) в новости выглядит так:<br /></p><div class="codebox"><pre><code>Вести ПМР › #Выборы в Госдуму РФ › Музей истории выборов и референдумов открылся в здании Центризбиркома ПМР ›</code></pre></div><p>Вот тест ссылка:<br />vestipmr.info/articles/2016/09/09/muzey-istorii-vyborov-i-referendumov-otkrylsya-v-zdanii</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-09-15T07:02:50Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124589#p124589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124584#p124584" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-09-07T05:09:45Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124584#p124584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124531#p124531" />
			<content type="html"><![CDATA[<p>Работа&nbsp; модуля &quot;Views Slideshow: Cycle&quot; подробно описана тут&nbsp; drupalbook.ru/content/sozdanie-slaidshou-slideshow-i-jquery-karuselei-chast-1</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-04-06T07:24:57Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124531#p124531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124517#p124517" />
			<content type="html"><![CDATA[<p>Во вьюшке &quot;Home Page jQuery SlideShow&quot; возвращаем и настраиваем отображение заголовка новости.<br />Добавляем: &quot;Содержимое: Заголовок&quot;, с классом TitleSlideShowBoris - непонятно куда его всунуть ((</p><p>Выбираем фон -&nbsp; sites/all/themes/news_center/images/overlay.png</p><p>в screen-layout.css<br /></p><div class="codebox"><pre><code>#views_slideshow_cycle_main_home_page-block .views-slideshow-cycle-main-frame .slideshow-overlay a{    
    color: #FFFFFF;
text-decoration:none;
font-weight: bold;</code></pre></div><p>Убираем черную рамочку вокруг меняющихся фото.</p><p>screen-layout.css<br /></p><div class="codebox"><pre><code>#views_slideshow_cycle_main_home_page-block .views-slideshow-cycle-main-frame-row-item {
 border: 1px solid #FFFFFF;   </code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2016-03-31T12:56:04Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124517#p124517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124494#p124494" />
			<content type="html"><![CDATA[<p>Задача, в каждом абзаце в отдельной новости сделать отступ - красную строку, но на главной странице в ленте новостей - отступы не нужны.<br />Моё решение:<br />Прописываем стиль для отдельной новости для первого абзаца.</p><div class="codebox"><pre><code>.field-item p
{text-indent: 1.5em;}</code></pre></div><p>А остальные абзацы выделяем с помощью пяти пробелов &quot;&amp;nbsp&quot;.</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-12-24T19:34:10Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124494#p124494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124476#p124476" />
			<content type="html"><![CDATA[<p>Почему-то поплыл блок с фотографиями из статей.</p><p>Правим файл all/themes/news_center/css/news_center.css <br /></p><div class="codebox"><pre><code>#block-views-articles-images-block .views-field-field-image {
    height: 68px;
    width: 119px;
   padding: 6px;}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-11-06T13:31:03Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124476#p124476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124456#p124456" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-10-21T07:03:31Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124456#p124456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124426#p124426" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-09-09T12:00:29Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124426#p124426</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124425#p124425" />
			<content type="html"><![CDATA[<p>Отступы слева в ленте новостей - зануляем 1.5em:<br />modules/system/system.theme.css <br /></p><div class="codebox"><pre><code>.item-list ul li {
  margin: 0 0 0.25em 1.5em; /* LTR */
  padding: 0;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-09-09T10:31:33Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124425#p124425</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124424#p124424" />
			<content type="html"><![CDATA[<p>При нескольких фото в ноде (новости) стали появляться дубли новостей в некоторых вьюшках.</p><br /><p>Решение:</p><br /><p>1. Query settings:Настройки - Distinct (уникальность элементов) Если есть несколько одинаковых элементов, каждый из них будет отображаться только один раз. Не всегда работает, мне не помогло.</p><br /><p>2. FILTER CRITERIA : Содержимое: Image:delta (= 0)</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-09-09T08:51:53Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124424#p124424</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Drupal 7 - настройка ЦМС]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124422#p124422" />
			<content type="html"><![CDATA[]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2015-09-04T08:35:13Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124422#p124422</id>
		</entry>
</feed>
