Submitted by ygerasimov on Sun, 12/04/2011 - 23:03
When we are writing our own module we, as good developers, should allow other people extend/modify some parts of it. Yes we are talking about defining our own module's hooks. But what we can do if we need to "extend" our module in several places but we should be sured that other module that implements one hook should also implement another one? What we should do if we have a lot of such cases and we should take care about consistency of implementations of other modules? Also sometimes we would like user to decide what implementation to run (so we want some kind of administration page where we select what extention to be active).
Submitted by ygerasimov on Fri, 12/02/2011 - 23:36
In this note I would like to share solution for quite common task: show node fields titles even if field are empty. By default if the field is empty it is not included in the node. But practically sometimes client would like to see title of the field even if the field value is not set. As this task has made me debugging for a while I hope it will save someone else's time.
So solution is to use hook_field_attach_view_alter(). This hook is invoked after field module added fields renderable arrays to the content of the node.
Submitted by ygerasimov on Sat, 10/15/2011 - 01:30
I would like to introduce new module Search API Location
that provides possibility to do spatial search using Apachesolr.
At the moment we can search by radius on the map putting the center of the circle. You are welcome to test on Demo site
Search API Solr module is used for integration with Solr. Search API Location module exports location data to Search API via hook_entity_property_info_alter().
Submitted by ygerasimov on Thu, 09/22/2011 - 12:15
There is more or less standard way of building Slideshows in drupal -- Views Slideshow module.
Module really works great and I would like to thank all people involved in it.
Submitted by ygerasimov on Tue, 08/02/2011 - 11:43
In this article I would like to create some notes about architecture of the Feeds module. This is really great module and it is real “must know” when we are talking about regular import of the data from some sources.
There is great documentation available on http://drupal.org/documentation/modules/feeds. Here I try to create a cheatsheet for 7.x version of the module that let developers brief understanding about how things work.
Submitted by ygerasimov on Thu, 07/21/2011 - 23:08
Submitted by ygerasimov on Thu, 06/30/2011 - 01:24
Today we are going to talk about really awesome module Search API
One of the most popular tasks I have regarding customizing apachesolr search results is adding new fields to index and to have custom facet for them. So lets discuss how it is done if we are using Search API module.
Submitted by ygerasimov on Sun, 06/26/2011 - 16:00
In this article I would like to share another interesting task connected with upload files in D7.
Task is to have custom form that allows to upload multiple files at once and create zip archive from these files on finish.
Submitted by ygerasimov on Fri, 06/17/2011 - 21:36
One of the new features of the Drupal 7 core is new File API. I would like to show how easy it become to use private file system.
Our task is quite simple: user should be able to upload private files that only he has access to download. Also we will add permission for "administrator" role to download any private file that users have downloaded.
So lets start. First of all we create separate page with form and defining our custom permissions.
Submitted by ygerasimov on Fri, 06/17/2011 - 10:49
One of new drupal 7 projects I had the task to add new step in checkout process. In this article I would like to share how easy it is now with Drupal Commerce