Не обновлял еще движки, в доках пишут, что нужно руками править .htaccess в директории files
For Drupal 6:
# Turn off all options we don't need. Options None Options +FollowSymLinks
# Set the catch-all handler to prevent scripts from being executed. SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 <Files *> # Override the handler again if we're run later in the evaluation list. SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003 </Files>
# If we know how to do it safely, disable the PHP engine entirely. <IfModule mod_php5.c> php_flag engine off </IfModule> # PHP 4, Apache 1. <IfModule mod_php4.c> php_flag engine off </IfModule> # PHP 4, Apache 2. <IfModule sapi_apache2.c> php_flag engine off </IfModule>
gruz_: добавить нужное поле image field, потом Rewrite Output и там вставить нужный токен.
Тут нет токена path
gruz_: Based on Drupal 7, Views 3 Add a "File Usage: File" relationship (Advanced->Relationsips) Add a "File: Path" field, NOT "Content: Image" (Block details->Fields) You will have limitless options on image pathoutput. Click to Display download pathinstead of URI.
Standard Drupal behavior is to pass all arguments through, whether or not they requested. Sometimes this behavior is desired. The views 404 module assumes that by default you do not want arguments passed through. 404s for views can also be accomplished by setting the Global: Null under Arguments.
Не обновлял еще движки, в доках пишут, что нужно руками править .htaccess в директории files
For Drupal 6:
Options None
Options +FollowSymLinks
# Set the catch-all handler to prevent scripts from being executed.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
<Files *>
# Override the handler again if we're run later in the evaluation list.
SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
</Files>
# If we know how to do it safely, disable the PHP engine entirely.
<IfModule mod_php5.c>
php_flag engine off
</IfModule>
# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_flag engine off
</IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_flag engine off
</IfModule>
добавить нужное поле image field, потом Rewrite Output и там вставить нужный токен.
Тут нет токена path
Based on Drupal 7, Views 3
Add a "File Usage: File" relationship (Advanced->Relationsips)
Add a "File: Path" field, NOT "Content: Image" (Block details->Fields)
You will have limitless options on image pathoutput. Click to Display download pathinstead of URI.
Здесь путь отдается к загруженному файлу.
Не помню )
Тут не подскажу, юзал только 7.х
---------- Добавлено 21.11.2013 в 20:38 ----------
Подскажите, как во вьюс получить путь сгенерированного image_style изображения поля image field, без использования php и допмодулей?
Это не баг, в д7 также
Для вьюс: https://drupal.org/project/views404
Для остальных страниц можно использовать preprocess_page, например если arg(0) == 'node', то для arg(3) отдавать drupal_not_found()
А вообще мне нравится эта фича, можно к любому пути добавить нужные аргументы, при этом не нужно объявлять их в hook_menu
У flag есть api: https://drupal.org/node/305086
$flag->flag('flag', 456);
The signature of this $this->flag() method is:
<?php
function flag($action, $content_id, $account = NULL, $skip_permission_check = FALSE)
?>
Я, давно, на d6, база общая была только user
Garin33, $tabs в блоке? menu_local_tabs()
Digdug, модуль local_tasks_blocks, по-моему он делает такое
zopaz, в документации все написано, или вы хотите, чтоб мы сюда скопипастили? https://drupal.org/documentation/modules/search