By junaid on Mon, 11/21/2016 - 11:23

The PDF files that we prepare after scanning happen to have bigger file size normally. It is because the PDF file gets all scanned images almost exactly in that same resolution as we scanned. We can use Ghostscript command to reduce size of PDF files as per our needs.

By junaid on Sat, 11/19/2016 - 01:34

In Drupal, by default there is hook_help(), which we can use to implement help pages for the module. You can get help page link for a particular module from module listing page. But, once you installed advanced_help module. That help link will be changed to a different path for advanced help of that module. However that is useless if the module does not implement advanced help. In this post, I show how you can disable advanced_help module's behavior for a particular module and restore default help link in module listing page.

By junaid on Wed, 08/05/2015 - 14:12

On Wordpress sites we can have both posts and pages. Posts are primarily for blog posts that expect readers opinions and discussions, so commenting is essential there. On the other hand, pages are primarily for content that will be independent of time and not tagged or categorized. "About" page is a good example for a "page". Most site admins do not expect comments or discussions on pages. Wordpress comes with commenting possible on pages by default. So, you would need to disable commenting on pages while creating or editing them.

By junaid on Thu, 04/23/2015 - 14:11

Recently I encountered a situation with a contributed module which need a bug fix. Fixing that required to identify URI of an entity with entity type given. As we all know, most of the entities will have a 'view' page. For nodes, it will be 'node/<nid>' (where nid is the id of that node). But it will not be of same pattern for other entity types. For example, URIs of Commerce Orders are of the form 'admin/commerce/orders/<order-id>'.

By junaid on Sat, 04/11/2015 - 14:09

We may encounter with situations that require files to be attached to node programmatically rather than user uploads it. It will be the usual case if the file is generated by the system itself.

In this article we try to show how we can attach a PDF file to file field of a node. Assuming default file type field is used. Here are the steps of logic we going to follow

By junaid on Fri, 04/10/2015 - 14:08

Rules are a powerful module, which can be used to construct very complex workflows within a Drupal site. Several of contributed modules comes with pre-built rules as part their functionality. Sometimes we may need to disable rules brought by some contributed modules that we used in our site. Disabling a rule through configuration is very easy, just go to rules configuration page, then clicking on 'disable' link work.

By junaid on Wed, 04/08/2015 - 14:06

Drush is powerful command line interface to Drupal. It comes with a set of pre-built commands to manage Drupal installations from command line shell. Especially, you will find it very useful while performing tasks that do frequently like clearing cache, running cron, setting and getting of system variables etc. It is a must have tool for Drupal developers. Drush is also highly extensible. You can develop commands specific to your project or system wide.

By junaid on Wed, 04/01/2015 - 14:04

phpMyAdmin is one of the widely used tool while developing database centric application using MySQL. Developers frequently access it while developments are going on, to check the values or manipulate data within database tables. By default, we have to login before accessing the databases. It becomes tedious when we perform login frequently.

By junaid on Tue, 03/31/2015 - 14:03

Entities are one of the most important concepts introduced in Drupal 7. It is clear now that, it got further expanded in Drupal 8.

Sometimes requirements may arise that want you to embed/add fields for an entity within a another form, possibly custom form you created in your module. With this article I am trying to show you how to achieve it. I will show it by embedding fields for a page node within a custom form. To keep things simple, the custom form do nothing other than just showing a text input field and allows to add/edit a page node.

Subscribe to