Designed and developed By Drupal Networks is a division of YAS Global.


Bind lightbox event afetr ajax call

$("a[rel^=lightframe]").each(function() {
$(this).attr("href", $(this).attr("href") + "?format=simple");
Lightbox.initList() ;

How to display XML code on an HTML page

There may be instances when you want to show sample XML code on a web page. I'm referring to the raw XML code with any and all markup intact. When the browser believes that the entire page is an XML page (because the page begins with an XML declaration), it will usually do the right thing and display the XML. If, however, you have the XML on an HTML page, the XML markup will be read by the browser instead of displayed.

For example, here is some sample XML data:

<?xml version="1.0" encoding="ISO-8859-1"?>


How to Create Drupal Themes for Different Content Types and Pages

This article is for web-developers who are interested in creating their Drupal themes. It would tell you how to create themes for different content types. As a bonus, you’ll get know how to create theme for an individual page (the default theme will be used for other site pages). Let’s start!
Theme for content type

Usually a few content types are used for Drupal-based site. And every content type should have unique appearance. There is pretty simple solution for this.

Open folder containing the default theme for your site and create the following file there:


Follow Us

Aliya's Tags