drupal

Insert the following Code in the computed code field

$field_cbr_start = field_get_items($entity_type, $entity, "field_project_start");
if($field_cbr_start != NULL)
{
$start_date = $field_cbr_start[0]["value"];
$start = strtotime($start_date);
$field_cbr_end = field_get_items($entity_type, $entity, "field_project_end");
if($field_cbr_end != NULL)
{
$end_date = $field_cbr_end[0]["value"];
$end = strtotime($end_date);
$duration_month=($end-$start)/2592000;
if(isset($end)&&isset($start)) {
$entity_field[0]['value'] = $duration_month;
}
else $entity_field[0]['value'] = NULL;
}
else $entity_field[0]['value'] = NULL;
}
else $entity_field[0]['value'] = NULL;

Fixing print-7.x-2.0 module error

First enable the module "dompdf library handler"

After that you have to add the corresponding dompdf module. Sadly the straight forward way did not work in our case. But we found a corresponding solution (Post number 11) on the page https://www.drupal.org/node/850098.
Copy the dompdf module into the following directory: ...\sites\all\modules\print\lib

The mentioned PHP lib can be downloaded using this link:
https://www.versioneye.com/php/phenx:php-font-lib/0.2.2

Creating a new type of content node in a Drupal system

In TechScreen we exchange different types of knowledge. How to achieve for example a new node that can be used to describe new software packages.

Usage of the Open Calais Web Service

A system that allows automated tagging is the Thomson Reuters' Calais web service (http://www.opencalais.com/).
A module that allows the usage of this service in a Drupal environment is called "OpenCalais". The OpenCalais module can automatically send the unstructured text data entered during the creation of a Drupal node to the web service. There the data is processed using various text mining- resp. natural language processing techniques and the results are presented to the users in form of various tags, divided into several categories, which the system identified as relevant for the topic of the text.

A tutorial on how the OpenCalais module might be integrated into a Drupal platform can be found at: http://www.lullabot.com/blog/article/introduction-calais

Automated tagging of newly created content on a Drupal platform

When you ask several people which tags they would use for a given text you might get several different opinions and also several very similar keywords. To avoid that and to ensure the sensible and consistent tagging of content an automated solution could be helpful. In addition it would also provide tags in the case that a user doesn't want to specify them.

Using an Apache Solr server

To enable the examination of files an Apache Solr (http://lucene.apache.org/solr/) server can be set up. It is
accessible and usable for searching attached documents through the modules “Search API”, “Search API Solr search”, and “Search API attachments”. Solr is an open source search platform developed to allow the easy integration of a powerful search solution into many different applications. This highly scalable system provides many features expected from a modern search engine: handling of rich documents like MS Word or PDF files, a potent full text search function, faceted search options, and many more. Therefore it is perfectly suitable for solving this challenge.

Note:
Drupal coordinates many internal procedures by using a scheduling program called “Cron”, which can be run as a
separate program on the web server or, since Drupal version 7, from within Drupal itself. The documents are only accessible after they have been published and have been made available for indexing by a Cron job. After a piece of content has been indexed it can easily be retrieved using the Solr search interface provided by the Search API module; it works exactly like the interface of the standard Drupal search function but makes use of a Solr Server that runs somewhere else.

Taggings:

Searching in file attachments on a Drupal platform

It is often the case that interesting information concerning a certain topic is not available at first sight. For instance: a user of a platform might write something concerning the topic of interest on a simple Drupal page but the really interesting information is hidden in a PDF-attachment. The standard Drupal search engine does not allow searching in file attachments and so a custom solution has to be found.

Check the drupal version and module version

AFAIK the dependencies are hardcoded into the module in a single line. So if it return an empty array, there must be something wrong with the module.

Another possibility might be that the module is for another version of Drupal than the installed version.

Taggings:

Displaying data from one Drupal site on another

The situation was the following: - Site A is used by companies to enter job descriptions. - Several Sites B want to access these job descriptions to offer a job board for applicants. Constraints: - solution has to be dynamic, e.g. a job entered on Site A has to be online on Site B instantly. - All sites are on the same server, so they can access the local MySQL database of Drupal.

Using the Maestro Module

A very promising module is being developed at the moment - Maestro (http://nextide.ca/solutions/maestro). It serves the purpose of developing a complex workflow on a Drupal platform very well. Unfortunately it's only available for Drupal 7.x, which might be a problem if the goal is to integrate it into a system that runs on an earlier version of Drupal.

Taggings:

Pages

Subscribe to drupal