Drupal 4.7

Модули для Drupal версии 4.7
Опубликовано VladSavitsky
Задача: 

Нужно отключить возможность менять заголовок комментария при создании и не показывать заголовок на странице ноды в списке всех комментариев.

Варианты:

  • Использовать стандартные возможности Drupal
  • Использовать модуль Re: Comment subjects
  • Скрыть заголовки средствами CSS
  • Использовать модуль "Comment automatic title"
  • Использовать хук hook_comment()

Использовать хук hook_comment()

См. http://api.drupal.ru/api/function/hook_comment/6
Теория:

  • Нужно перехватить вывод формы комментария и отключить вывод заголовка.
  • Читать дальше...
Опубликовано VladSavitsky
Задача: 

Нужно отключить комментарии у нод заданного типа. При просмотре ноды не должно быть ни формы комментария, ни ссылки на форму для добавления комментария.

Решение
Настройки комментариев хранятся в базе данных отдельно для каждой ноды. А общие настройки (настройки по умолчанию) можно задать на странице настроек нужного типа материалов, но влиять они будут только на новые ноды. Для созданных ранее нод в базе данных будет храниться значение, которое было задано при сохранении ноды. Поэтому есть 2 этапа отключения комментариев - для новых нод и для уже существующих нод.

Отключение комментирования для новых нод

Чтобы отключить комментирование для всех вновь создаваемых нод этого типа нужно сделать следующее:

Опубликовано VladSavitsky
Задача: 

Нужно вывести на странице термина таксономии ссылку для быстрого перехода к редактированию термина.

Решение:
Решение достаточно простое - одна строчка в шаблоне темы, - но становится намного удобнее работать!
Кроме того, у каждого термина есть описание. Если это описание заполнено, то при наведении мыши на термин во всплывающей подсказке показывается текст этого описания...

Читать дальше...
Опубликовано VladSavitsky

Перенести блог из WordPress в DrupalНужно перенести статьи из блога на WordPress в Drupal.

Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

The Links Package is a multi-module set for managing URL links in a master directory, and attaching them in various ways to your content pages. It includes both an API for developers and user-visible content modules. This package is released for Drupal 4.7 and Drupal 5.0.

Links offers the following features:

  • An API for managing URLs in a generic way, and for associating these links in a many-to-many relationship with nodes. Each link is "normalized" internally, to try to merge references to the same URL in the database. If the same URL is used multiple times, it appears only once but with many node references in the {links_node} table. This helps to make processes such as link monitoring and dead link detection more efficient. The API also allows each link-node association to (optionally) provide an unique node-local title that overrides the global title for that particular URL, but only when that node is being displayed. In other words, the same URL can appear to have multiple different titles.
  • A main links.module that governs the behavior of the Links Package's global features, and which implements common functionality such as outlink tabulation of clicks. Click tabulation is by node and link, so that it is possible to find out not only how many times an outbound link has been followed, but also how many times it has been followed from each node that refers to it.
  • A links_related.module which allows the administrator to add a link field to any desired node types in the system. Currently, the node type setting is just a boolean flag, and if on, the node can have zero to infinity links. In the next version, however, this will become an integer where 0 means no links for the given node type, +N means "up to N links" for each node of that type, and -N means "exactly N links required (non-empty URL).
  • A links_weblink.module which defines a node type of 'weblink', which behaves very much like the node type of the same name by Ber Kessels, and which in fact was based on his module's code base but uses the new links API.
Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

Модуль Shared Sign-On: общая аутентификация при мультисайтингеРеализует "Общую аутентификацию" ("Shared Sign-Ons") между схожими Drupal-сайтами
на одном сервере с общей базой данных.
Может использоваться отдельно, но наиболее проверен в союзе с модулем Domain Access.

Обратите внимание: по историческим причинам этот проект имеет короткое/внутреннее имя "singlesignon".

Читать дальше...
Опубликовано VladSavitsky

Найти строку среди строк переводовНужно найти строку, что изменить или добавить перевод.

Читать дальше...
Опубликовано VladSavitsky

Цепочка навигации на основании синонимов URLСоздать цепочку навигации на основании синонимов URL

Читать дальше...
Опубликовано VladSavitsky

Обновление версии ДрупалВышла новая версия ядра Друпал. Нужно обновить сайт до новой версии.

Читать дальше...
Опубликовано VladSavitsky

Описание с сайта

Модуль Login Destination: куда пользователь попадет после входа или регистрацииThis module controls where users go after logging in. You can configure login destination on a settings page. It will be either static URL or a PHP snippet evaluating your own site's logic. You can also configure which pages redirection is applied.

To achieve this you can specify either a list of URLs or a PHP snippet to build this list dynamically. So, you can redirect user to various pages depending on which pages they are logging from.

In the last 5.0 release you can also use alias URLs instead of internal paths.

Developed by ARDAS group - Web solutions development, Drupal CMS and Software outsourcing.

PHP snippet for redirection URL should return a string. Here is an example:

  global $user;
  if ($user->uid == 1) {
    // Redirect the Administrator
    return 'admin';
  } elseif ($user->uid == 2) {
    // Redirect the Site Owner to the 'create content' page
    return 'node/add';
  } else {
    return 'node';
  }

PHP snippet for Redirection condition should return boolean value. An example is:

  return ($_GET['q'] == 'user/login');

Don't put PHP tags when creating snippets.

Turn on "Preserve destination" feature to make module sensible to destination parameter. When login from the path with specified destination (ex: 'any-page?destination=node/18') you will be taken to node/18 instead of the URL specified in login_destination settings.

DRUPAL 5:

$_SESSION['login_page'] was added and stores the page you were before clicking login form button. You can use it to determine the page you logged from instead of $_GET['q'] because $_GET['q'] always equals to 'login_redirect'.

DRUPAL 6:

Now you can use $_GET['q'] to find out internal path and $_REQUEST['q'] for alias of the page you have logged in from.

Читать дальше...
 
 
 

RSS-лента новостей

Dries Buytaert по-русски
]]>Русский поиск Drupal]]>

Перенос сайта из Joomla в Drupal
Перенос сайта из WordPress в Drupal

]]> Drupal - это бесплатная система управления контентом с открытым исходным кодом ]]>