Полная документация по CMS Drupal (создание сайта, локализация)

Установка и настройка сайта, а также системного окружения. Исключая вопросы программирования новых модулей и тем.

См. документацию на английском: http://drupal.org/node/258

Сбор новостей

Need a simple multiple image field

Module development - 4 часа 1 минут назад

I've written a module that creates a node type and now my client wants to add an image field similar to the one wireframed here:
IT'S A KITTY!

I currently already have a single image being attached, but the client wants the ability to select from the ones below (have four images, one in full size, three thumbnails).

I haven't seen a module that already does this, but if one exists that would really make my day. Does anything like this already exist? If not have you created something like this? And if so do you have any advice?

Категории: Drupal.org

Quiz Prerequisite

New Drupal modules - 7 часа 54 минуты назад

The Quiz Prerequisite module is a Quiz module add-on. It lets site administrators configure quizzes to have prerequisites. When enabled and configured, this module will check to see if a prerequisite quiz has been taken before allowing users take a quiz. Site administrators can configure which user roles need to meet the prerequisites.

You must download and enable the Quiz module before you can use this module

The foundation for this module came from the Drupal 5 module posted by @sunsetco from http://drupal.org/node/518104.

This module is sponsored by http://bitsprout.net and http://altprod.com

Категории: Drupal.org

HTML5 user geolocation

New Drupal modules - чт, 09/02/2010 - 23:06

This is a simple module to let users store their location on the edit account page. It uses HTML5’s geolocation API and stores latitude and longitude. How you use that data is up to other modules.

It will be used on Drupal.org

Категории: Drupal.org

Peek Summary

New Drupal modules - чт, 09/02/2010 - 22:38

This is a Views summary style plugin. It allows you to embed the results of a View with each argument in the argument summary. You may use a different display; for example, you might build an archive View with a Year+Month argument, that lists the four most popular nodes for each month in the summary, but that lists nodes in date order when you click through to the argument.

Usage:

Caveats:

  • You should limit the number of arguments displayed per page (in the argument summary). A View is executed for each argument that is rendered.
  • You should use Views' caching, at least for the display you use for peek_summary.
  • The peek_summary display must have the same arguments as the argument summary display--they may or may not be the same actual display.

read more

Категории: Drupal.org

Using form #action with #method post

Module development - чт, 09/02/2010 - 21:13

Hi,

I have created a small module where in I am using $form to create a form and add it to a block. This form has action attribute set to some url(xyz) where xyz is handled as a menu callback in another module. Also, the #method is set to post.

My query is, how can I access form data in page callback (xyz).

Категории: Drupal.org

Module Search Box

New Drupal modules - чт, 09/02/2010 - 21:04

It's hard sometimes to find certain module if you're using a bunch of modules. This module helps you to find the module faster.

Категории: Drupal.org

audit download module

Module development - чт, 09/02/2010 - 19:39

Hi,

Is there any module which can audit file download base on username rather than the total downloads?

Thanks

__
Edited by WorldFallz - nothing to do with module development, moved to appropriate forum.

Категории: Drupal.org

Restrict content access based on the user's creation date

Module development - чт, 09/02/2010 - 19:36

I have setup several subscription based sites using Drupal. Normally, the client wants the user's to have access to all previous content upon subscribing. For this new client, that is not the case. They would like to be able to restrict access to specific content based on the date the node was posted and the date the user was created.

They would like to allow users to only view future created content and not have access to content that was previously posted. They are going to offer those previously posted articles as individual products for sale.

If anyone has any pointers for this, I'd really appreciate it. Thanks!

Категории: Drupal.org

Multiple column webform

Module development - чт, 09/02/2010 - 19:30

Hil to all.

I want multiple column in webform for my checkbox.

I have followed all the steps of the thread http://drupal.org/project/multicolumncheckboxesradios in the section Webform usage: add a hook_form_FORM_ID_alter() .

I write de module in sites/all/module with the name checkbox. i write 3 source file..... chechkbox.info , checkbox.module and checkbox.css with the code.

in checkbox.module i write this

<?php
function HOOK_form_webform_client_form_24_alter(&$form) {
  $form['submitted']['categorias']['#multicolumn'] = array('width' => 2);
  $form['submitted']['categorias']['#process'][] = 'multicolumncheckboxesradios_element_process';
}
?>

in the checkbox.css
.multicolumncheckboxesradios-column
{
float: left;
width: 10em;
}

The html code of the form, is this....

form action="/node/24" accept-charset="UTF-8" method="post" id="webform-client-form-24" class="webform-client-form" enctype="multipart/form-data"

class="webform-component webform-component-checkboxes" id="webform-component-categorias">categorias:

read more

Категории: Drupal.org

Customize blog thumbnail (imagecache) with CSS

Module development - чт, 09/02/2010 - 19:22

Hey,

I made a new setting called 'thumbnail' in ImageCache that is scaling every image that has to be a thumbnail to 100x100, and I created a new field in type 'blog item' in content types so I can add a thumbnail to every blog post.
Now i want to customize that thumbnail that shows up in every blog post, and I tried to find a css file for that, but i can't find anything that's referring to it.

Does anyone know how i can customize it?

Thanks

__
Edited by WorldFallz - nothing to do with module development, moved to appropriate forum.

Категории: Drupal.org

Creating A Font Module

Module development - чт, 09/02/2010 - 17:27

Hi there,

I'm planning to build a font showcase but I want to develop some feautures.

When an user upload a font to the server using font content type, the font's preview will be created automaticly.
In the uploaded font's node, there will be a textfield to create preview of user's random text.

How must I start to develop these features?

Категории: Drupal.org

modify user registration form in drupal 7

Module development - чт, 09/02/2010 - 17:24

hello. in drupal 6 i could use hook_user to add customize fields to the user registration form. in drupal 7 i found , i could do that with hook_user_form. however it does not work. the fields are not shown either in registration form nor in user edit form. any idea??

best regards

Категории: Drupal.org

Custom module and node hierarchy

Module development - чт, 09/02/2010 - 16:36

Is it possible to set module parent node (set with node_hierarchy module)?

I want to avoid putting module block into content.

Here's an example what I want to do:

-currently I have module installed at http:///module . It does not have any parent set.
-I need to set /module parent to be the same as http:///something/parentnode so I can have tabs and breadcrumbs rendered on my /module page properly.

Категории: Drupal.org

CCK/ImageField with variable validation

Module development - чт, 09/02/2010 - 16:04

I have two different CCK fields, one is a select and another an image file upload.

My problem is that the image dimension validation is different for each value of the select field.

Anyone have any idea on how can I make this happen? Is there any hook I can implement on my module that would change the validation behaviour?

Категории: Drupal.org

Mozile

New Drupal modules - чт, 09/02/2010 - 15:19

This module is an in-line editor used to edit the body field of specific content types and blocks using Mozilla's Mozile editor.

In essence, this editor should work on all browsers, but it's best used with Mozilla Firefox.

Please consider donating to further the development of this module.

Maintainer: Waleed Qadi from O-Minds.

O-Minds can be contacted for Drupal services via the contact form on our website.

Категории: Drupal.org

error handling

Module development - чт, 09/02/2010 - 14:16

Hello
is there a module or a way to make my drupal site redirect to a page when ever a php error happened instade of showing the blank page with the list of errors array.
thanks

Категории: Drupal.org

Session isn't destroyed on browser close

Module development - чт, 09/02/2010 - 13:31

I am creating a session variable for anonymous user to access a certain page. I need to close this session after close the browser. Can anybody help me to do that?

Категории: Drupal.org

CCK Scorm Field

New Drupal modules - чт, 09/02/2010 - 12:42

This module provides Moodle SCORM (http://www.moodle.org) integration for Drupal using CCK functionality. It depends on the CCK and the FileField module. This first version focuses on displaying SCORM contents and logging events for each user. Analysis of all logged events will be part of a later release. The module enables the user to upload a SCORM compatible Zip file during node creation process. The user can decide if the SCORM content should be opened in a new window or if it should be embedded (width and height parameters are available).

The module is developed during the project “E-Learning 2.0 in craftsmanship trainings” funded by the Federal Ministry for Education and Research (http://www.bmbf.de/) and the European Social Fund (http://www.esf.de/). Project maintainer is the German Center for Aerospace (http://www.dlr.de/). The module is developed by Servit Open Source Solutions (www.servit.ch) and is adjusted by the project team (http://q-online.de/kontakt). The module is a part of the community portal which is currently in development.
Further documentation will be published soon.

Module maintainers are:

Категории: Drupal.org

Unable to make javascript work in my module

Module development - чт, 09/02/2010 - 12:07

Hello there,

I am working on my module and need to introduce some jQuery functionality to it.
After reading the stuff across net I wrote following in my myModuleName.js file

Drupal.behaviors.myModuleName = function(context) {
$('document',context).alert ("function called");
        }

I also added following to my myModuleName.module file

function myModuleName_init() {
  theme('myModuleName_javascript');
}

function theme_myModuleName_javascript() {
  drupal_add_js(drupal_get_path('module', 'myModuleName') . '/myModuleName.js');
}

Now when I go to a page belonging to my module, I see that page does have drupal.js and myModuleName.js included in <head>
But I still don't see the confirmation (through the alert I wrote in myModuleName.js file) coming.

For alert I tried writing alert(), document.alert(), $(document).alert(), $(document,context) etc. but none worked.

Am I doing something wrong? Is something incomplete? Is there any other way I can check whether Javascript is working or not?

Thanks,
Mukesh

Категории: Drupal.org

transliteration

Module development - чт, 09/02/2010 - 11:58

i need to use the transliteration way to remove the space from the images file name and the better is to replace it with underscore character.

and i have found the transliteration module , but actually im facing a problem with this module

that is changing the name of the files , the non english names to an english name and that cause the website not to how the images

i mean that due to the stored images the new uploaded ones are fine.

but the previously stored will get to be broken, and i have a huge data base with images and i dont know how to solve this

any one have an idea what to do , cause i tried many things and nothing works with me.

Категории: Drupal.org
RSS-материал