Tag Archives: Context

Drupal 7 – Apply different theme based on path

Recently i have created a mobile website using Drupal. I would like to use another theme instead of the mobile theme in certain pages such as the user login page. This can be done by the ThemeKey module.

1. Instead and enable ThemeKey.

2. Go to admin/config/user-interface/themekey.
Continue reading Drupal 7 – Apply different theme based on path

Drupal 7 – Core drag and drop not working

One day after i migrated a Drupal 7 website to a client’s server, the core drag and drop feature did not work. In addition, i could not edit the Context because nothing was shown when i select the condition. The Show row weights link was also missing.

Finally i found that i was not the only one who came across this problem. The following post is a similar scenario and probably the failure was caused by the PHP 5.3 on the client’s server.
Drupal Core – Drag and drop not working
 

Anyway, after i have enabled the Aggregate JavaScript files in Administration » Configuration » Development » Performance, the problem was gone.

Done =)

Drupal 7 – Disable certain regions by conditions using Context and Delta

We have talked about how to disable certain regions using the Context module.
Drupal 7 – Disable certain regions by conditions using Context

But seems that it may not work for certain themes and regions. Luckily, there is another module called Delta which could be served as an alternative. Delta not only could disable the region but it could alter any theme settings for specific context condition. Let’s take a look now.
Continue reading Drupal 7 – Disable certain regions by conditions using Context and Delta

Drupal 7 – Disable certain regions by conditions using Context

Context could help you to manage the layout. In the past, i would use the Page manager of Chaos Tool Suite and Panels to control the layout but now i have completely move to the Context module. You can decide which regions should be hidden.

However, i found that it may not work for certain regions and so i raise it in the Context project page. I will keep my eyes on it.
Context – Disable regions
Continue reading Drupal 7 – Disable certain regions by conditions using Context