drupal

Can I tell sitecrawlers to visit a certain page?

Hi there! I have this drupal website that revolves around a document database. By design you can only find these documents by searching the site. But I want all the results to be indexed by Googlebot and other crawlers, so I was thinking, what if I make a page that lists all the documents, and then tell the robots to visit the page to i...

Wrong label for a nodereference in Drupal content-type

We have a content-type built using CCK. One of the fields is a node reference. The node picker is using a view to build the options. A few days ago, everything was working well. Today, it looks like all node reference fields using views to populate the selection options are displaying the wrong label. Every single label in the optio...

Drupal 6: Creating "ON/OFF News Links" functionality for a block created with View Module.

Hi friends, I'm a drupal newbie who needs some advice... I have a news list block at homepage, created with View Module. It is listing all added news' title and link. Everything is cool so far. Now I need to add an ON/OFF option at admin side for homepage news block. When the setting is ON, it will work as it is. When it is OFF, only t...

Drupal hook_cron execution order

Does anyone know off hand what order Drupal executes it's _cron hooks? It is important for a certain custom module I am developing and can't seem to find any documentation on it on the web. Maybe I'm searching for the wrong thing! Any help? Jeff ...

Drupal User Permissions, Only Allow Specific Users to Edit Specific Pages

I know I can set up a role to allow user's to only edit their own pages, then go mark the appropriate pages to be authored by the appropriate user. But then I run into multiple users per page problems. Is there any way that you can explicitly only allow a user to edit certain (perhaps multiple) pages, while accounting for overlap in the...

I'm trying to use a PHP code for panel visibility in a Panels3 based on Friendlist

I'm trying to gain a truth value to gain panel visibility. I have a view in place in a panel to display a listing of heartbeat messages that belong to a user. The display works but I cannot figure out how to restrict access to the panel based on the user who is viewing the panel. Goal is I want the panel to only be visible to friends and...

Google adsense reference

My client has a google adsense account and one ad-campaign with several ads under it. The client needs to identify the incoming users who comes through clicking each ad. The client uses Drupal PHP site. Is there a possibility to track incoming users who comes through google ads? ...

Passing URIs as URL arguments in Drupal 6

I'm running into problems trying to pass absolute URIs as parameters with clean URLs enabled. I've got hook_menu() set up like this: function mymodule_menu() { return array( 'page/%' => array( 'title' => 'DBpedia Display Test', 'page callback' => 'mymodule_dbpedia_display', 'page arguments' => array(1), ), ...

Drupal get a CKK field from a node object

I am using the Rules module to send an email. I need to include a CCK field from my node in the email. The rules module provide a $node object. How do I get from this object to my field so I can output it in the email? ...

Drupal how to show CCK field in search result?

Hi! How to display custom CCK field (text or imagefield) in Drupal core search results page? Thank you in advance! ...

How do i create my own Token?

I use Rules-Module. I want to add 1 to a cck integer field on an action. Someone told me to create custom token doing this addition. So, I installed tokenSTARTER module. Now, how do i access the content profile (I load it in the rules chain) where needed cck field is in? ...

Drupal : Notification of modification to translator of a content

Hello, In Drupal, i want to know how to notify translator that the content they translated, was modified. What is the easiest way to do it? Is there a module for that? Maybe workflow can help but i think this needs too much adminsitration Bonus Question : Do you already work with the same language in several countries? Exemple : Eng...

How do I add a custom table to a form in another module in Drupal?

I am trying to make a module to add a table to a form in another module. I found I can add the new data in a module_form_alter hook but how to I get it to run through a theme hook? The module I am trying to modify has a theme hook for the page I want to modify. I don't want to change the original form I just want to add a table with n...

Drupal Calendar Navigation with Taxonomy argument?

I want to use the default calendar views, but add a Taxonomy argument coming in from the URL. I haven't been able to get it to do a whole lot. I can accomplish this easily with a regular view, but I need the calendar navigation style to browse events tagged with the term from the URL. Any thoughts? ...

Database access in Drupal

I am trying to customize a Drupal 6.x module. The original module does not make any calls to the database, but the customized version needs to pull some data from the database. The query should take place with an AJAX call. So I am trying to make a data provider to receive the call, query the database, and return the result (some json). ...

Drupal Exposed Views Filter custom date

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 ab...

Add login / logout to drupal menu that's not a primary or secondary menu

Hello, Im trying to append an item to a menu that I created. I know its get the primary and secondary menus using "menu_secondary_local_tasks()" etc, and then add items within preprocess page. How would I go about this with a menu that I created? Here is the code I am using to check is the user is logged in... function themeName_chec...

Getting an array of nodes related to a category term with the Drupal API

I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I want to know is if there's a built in function to get an array of nodes related to a single term, something like taxonomy_select_nodes() but that would return an array of nodes instead of a string. ...

how to add multilingual feature for site information in drupal using i18n

i want to add multilingual feature for slogan and mission in the drupal site information. I tried adding: $conf['i18n_variables'] = array ( 'site_name', 'site_slogan', 'site_mission', 'site_footer', 'anonymous' ); to settings.php, but that is not working. I am using drupal 6.17 ...

Drupal 6: getting CCK field value with php in a Block by View Module...

Hi friends, I'm a drupal newbie (mean it :) I have a Block, created with View Module. and this block content has CCK fields. I display any of field with Fields Box in View Module. It's cool. the issue is, one of the CCK field has a condition value for linking at homepage or not. So I need to get the value of field_homepage_linking CC...