drupal-6

Drupal import Tweets from Twitter as Nodes

扶醉桌前 提交于 2019-12-06 03:32:14
I want to be able to import my tweets from twitter into Drupal as Nndes. I want to be able to link @names and #tags back to the correct pages. I also don't want myTweeterName to appear at the start of the tweet. How would you go about doing this? The twitter module does not create nodes but stores data in its own table. The feed module can read in the tweets from the RSS feed as nodes, but will display my name and not link @names and #tags . The following post by Gábor shows how he has done it but I am not sure how he has written a custom module to do this. Any pointers would be appreciated.

Taxonomy view with nodes

可紊 提交于 2019-12-06 02:09:27
Using Drupal 6, I'm trying to create a page with views that shows something like the following: -Taxonomy Term 1 -- Title and description of a node that contains this term -- Title and description of a node that contains this term -Taxonomy Term 2 -- Title and description of a node that contains this term -- Title and description of a node that contains this term -Taxonomy Term 3 -- Title and description of a node that contains this term -- Title and description of a node that contains this term So basically when I go to this page, I see taxonomy terms of a particular vocabulary listed out as

how to make content's title unique

邮差的信 提交于 2019-12-06 01:43:24
问题 I am new to drupal and i want my content title unique so is there any module available for it or if i can implement autocomplete to view my past title name. please give answer in detail Thanks in advance :) 回答1: You can use http://drupal.org/project/unique_field module. It performs additional validation when a node is created or updated by a user to require that a node's title or other specified fields are unique. 回答2: Scenario #1 - Unique Node hook_node_validate() is what you need, if you

hook_user(): inserting extra field into database not just form

陌路散爱 提交于 2019-12-05 19:56:56
I can add an extra field to the registration. What I need to know is what step do I need to take to then grab that input and insert it into the user table of drupal. The code below is in my module this adds just a field to the form, but when its submitted it doesnt do anything with the data. function perscriptions_user($op, &$edit, &$account, $category = NULL){ if ($op == 'register') { $form['surgery_address'] = array ( '#type' => 'textarea', '#title' => t('Surgery Address'), '#required' => TRUE, ); return $form; } if ($op == 'update') { // … } } As reported in hook_user() documentation : $op

Drupal Exposed Views Filter custom date

人走茶凉 提交于 2019-12-05 15:34:02
I have a date filter that I have exposed on my view. I want to make the interface more user friendly and tighten up the look of it. Instead of selecting a date I would like to select from the following options. The last day The last week The last year All This would then filter on the date field. Is this possible? How would you go about doing this? The proper way to do it is to alter the form in a custom module using hook_form_alter : function YOURMODULE_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'views_exposed_form') { $view = &$form_state['view']; $display = &$form_state[

Removing the navigation menu from the node menu settings in Drupal

非 Y 不嫁゛ 提交于 2019-12-05 15:02:30
How do you remove the "Navigation" menu (and others) from the menu settings on the node edit form? I suspect this can be achieved somehow using a hook like module_form_alter, but am not sure how to implement it. The motivation for this is to remove the confusion our users have when menus other than the standard primary links menu is in the drop down. The aim is to restrict the options to just the menus they will need/want to post content to. This question is in part related to an earlier question I asked in regards to Domain Access that I have not yet been able to solve. There are two modules

Include OpenId in drupal

亡梦爱人 提交于 2019-12-05 13:28:10
i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job? EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro.. it's simple..i've openID enabled in my drupal 6. When i try to use my gmail or yahoo account, it doesn't login. What should i do for that? Yes, there's a module for that. But you added a drupal-6 tag, which suggests you're using Drupal 6; OpenID has been a core part of Drupal 6 for >2 years - it's documented in the

Drupal: File upload required?

与世无争的帅哥 提交于 2019-12-05 11:39:46
For some reason, my form breaks when I try to make a file upload required. Here is the code for it: $form_id = "upload_form"; $form[$form_id] = array ( '#type' => 'fieldset', '#description' => t('This is a utility to import nodes from a Comma Separated Value file. To begin, pick a node type, and upload a CSV.'), ); $form[$form_id]['type'] = array( '#title' => t('Enter node type'), '#type' => 'textfield', // '#autocomplete_path' => '', TODO: autocomplete for node types '#required' => TRUE, '#description' => t('This node type should already exist. If it doesn\'t, create it first.'), ); $form[

Drupal: automatically add menu items when new nodes are added

て烟熏妆下的殇ゞ 提交于 2019-12-05 09:26:55
can I automatically add a menu item when I add a node to the page in Drupal? In other words, can I associate a menu parent with a node content-type, and then automatically add the children if new nodes are added ? thanks Yes. I am sure there is a module do to something like that, but you could also create your own. There are two ways you could go about it. You could use hook_menu() to query for the items you want and return the correct menu structure. You would need to also make sure the menu cache is rebuilt on a node save using hook_nodeapi() . See henricks' comments below about why this is

Drupal 6 To 7 Migration

你离开我真会死。 提交于 2019-12-05 02:30:44
问题 We have a drupal site written in drupal 6. We know we will have to rewrite it for drupal 7 (mostly) But the big part is migrating the data. CCK migrate was only able to migrate about 90% of the fields. I am looking for a clean way to migrate the drupal 6 data to drupal 7. We used content_multigroup as a module which is basically like a field collection...How would that be migrated? I am looking for some general strategies...I am thinking of bootstrapping drupal 7 and just write queries