Drupal Theming
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 01st July 2013 / by chithra.k
Drupal Drupal Theming Drupal 7 Drupal Views Leave a reply Your email address will not be published. Required fields are marked * C.A Brown (not verified) access_time 13 Nov 2019 - 21:33 Thank you this is some very helpful information, for the life of me I could not figure out how to add to a theme I had the hook wrong. Thanks for the info. Dashamir Hoxha (not verified) access_time 13 Nov 2019 - 21:33 Thanks for this post. This is the most clean approach that I have seen so far for implementing in a module a suggestion for another theme hook. The key 'base hook' is what makes it work. However I think that the key 'arguments' should actually be 'variables', isn't it? I am trying to implement this on my module, but the function template_preprocess_HOOK seems not to be called. I don't know yet why. webmaster access_time 13 Nov 2019 - 21:33 In reply to Thanks for this post. This is by Dashamir Hoxha (not verified) Thanks Dashamir for catching the mistake. Yes, arguments should have been 'variables'. I have corrected the same. template_preprocess_HOOK should be called if theme('HOOK') is called in your application. Are you still facing problems with this? We will be happy to help you with this if you need. Anonymous (not verified) access_time 13 Nov 2019 - 21:33 Wow! you saved my night! Thanks, worked like a charm Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 01st June 2013 / by sujith.s
Drupal offers flexible support for theming by allowing us to edit its template files. If we want to add a few custom variables other than the default variables then we need to do some coding within the template file. If you want to know how to add a custom variable in a Drupal's View template file then read on to find out more. Drupal Drupal Theming Drupal Views Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 23rd May 2013 / by tintu.manuel
Nowadays we can easily access internet in different devices such as mobile, tablet etc. So its necessary to make a website compatible with popular devices like iPhone, iPad etc. In Drupal, we have a simple method to make a website adapt to different devices. In this method we can convert a normal theme to responsive theme easily. To get this we have to modify the .info file and add the media query stylesheets in .info file. We will also have to add the responsive style rules to the separate media query stylesheets Drupal Drupal Theming Responsive Design Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 20th May 2013 / by tintu.manuel
It is very good if we can create a pure CSS multilevel drop-down menu in Drupal. We can simply avoid adding additional modules or jQuery for the multilevel drop-down menus. As we had a requirement to create a multilevel drop-down menu without using jQuery, we created it in pure css. And it works well in different browsers. We created this menu as main menu for the header navigation part. And there is a region for the header part called "region-header" and it wrapped in a class called .header-wrapper. Also Drupal provides a class called 'menu' for ul. So we had to define the class-name along with the ul. Drupal Drupal Theming Drupal 7 Drupal Customization Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 20th May 2013 / by sujith.s
We might encounter a situation where we may need to fetch CCK fields values in a node, i.e, we may need to show CCK field values in custom search results. Drupal provides a easy way to fetch CCK fields programmatically. Read on to know how to fetch CCK fields value programmatically Drupal Drupal Theming Drupal 6 Drupal Customization Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 10th May 2013 / by nijo.lawrence
Nowadays most of the websites that are being built will have a mobile version also. One of the specific aspects we have to take care of with mobile sites is writing proper code to switch a drupal site to mobile website when the site is accessed from a mobile device. If you are trying to do the same thing then please follow below steps to solve your issue. Although this is written in the context of Drupal websites this should apply for other websites as well. Drupal Drupal Theming Mobile Websites Mobile Applications Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 08th May 2013 / by hema.divakar
In one of my recent Drupal projects I needed to add some extra classes to the body tag. Usually classes are added to the body tag in one of our template file namely html.tpl.php. The classes can be added via an implementation of hook_preprocess_html. Now let's see how it can be done. Web Development Drupal PHP HTML Drupal Theming Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 02nd May 2013 / by muhammed.junaid
Most Drupal developers know about writing theme functions in Drupal 7. Likewise we can create theme templates too. However Drupal developers rarely create their own templates. Read on to know how to create a custom template in Drupal 7. Drupal Drupal Theming Drupal 7 Leave a reply Your email address will not be published. Required fields are marked *
/themes/custom/zyxpro_light/images/placeholder.png
close

on 01st March 2013 / by naveen.pl
We need to develop websites for a variety of mobile devices along with regular desktop versions. To do this effectively we need to detect the mobile devices when they access the website which can be done through Javascript. Read on to know how to detect mobile devices using Javascript Javascript Web Development Drupal Theming Leave a reply Your email address will not be published. Required fields are marked *