Friday, March 21, 2014

Why It Is Beneficial To Opt For Customized Drupal Website

Drupal customization acts as the right impetus that brings various opportunities for you at the right point of time. If you are planning to take your online business to the next level to meet the market challenges, then you need to have a strong online presence that can withstand the latest trends. Being a powerful open source content management system, Drupal can offer you a highly-dynamic website that will give your business an extra edge over your competitors. Custom Drupal development allows the users to modify the site as per their specific requirements.











What Makes Drupal The Best Platform To Build Custom

 Designed Websites!

Numerous Features: Drupal CMS comes with a wide range of features, like RSS feeds, user account registration, maintenance, page layout & system administration customization, menu management and even more. These excellent features help you create all sorts of websites including single & multi-user blogs, simple sites, forums, brochure-ware, community websites, etc.

Administrator Control: Drupal has an advanced administrator control with the options to set up new user accounts as well as user permissions. It provides easier administration with greater controls. The permissions can be designated in accordance with the role or group. Also, it offers fine-tooth comb-style that helps users in creating the content.

Organized Content: The ability to organize the content for recall or later use is one of the difficult parts for the various content management systems. Drupal software allows its users to categorize the content via path urls, build custom lists, link the content and create defaults.

Advanced Tools/Templates: This robust CMS offers the elemental building of websites in the form of modules, where rules and content can be created quickly. It offers a numerous themes and templates to help you create simple to even more complex sites, eliminating the need to start from scratch. These pre-defined configurations or features help you create fairly complex sites quickly, allowing you to utilize your time in building extra features.
Enabling Users To Collaborate With You: Along with the user-friendly interface, Drupal has a great ability to publish socially. Drupal-based websites engage its users to contribute, while providing the administrator the ability to view, create, administer publish as well as control the social content, published on the site.

The Benefits That You Can Expect From Drupal Customization


If you want to own feature-rich website with complete flexibility and want to have a full control over your site, then Drupal customization is the best and the decisive choice. It allows you to create a highly-scalable and adaptable website that is satiated to meet your unique requirements. You can keep track of your site visitors and even restrict the unauthorized access to your website.

Unlike regular HTML websites, Drupal sites are comparatively easy to manage. You can easily maintain various Drupal features without technical expertise. 
It allows you to be upgrade Drupal-based site to the higher version easily and keeps you updated about the latest changes in the Drupal CMS.
Drupal customization offers incredible modules that you would like to incorporate in your website.

The custom sites involve high-quality JavaScript and CSS codes that ensure better performance of sites on the popular search engines resulting in better online visibility, improved traffic rates and thus, increased Return On Investment.

Friday, March 14, 2014

Customizing the Appearance of a Specific Node in Drupal 7

The customization we will be performing on the node in question is that it should only display its content and links to authenticated users. In other words, anonymous users will only be able to see its title but not content.

Here are the Steps to be Followed:

  • navigate to your Drupal root folder.
  • Go to sites --> all --> themes --> your theme folder. Here in my case, it is myzen.
  • Search for node.tpl.php in templates folder. if you are using myzen theme, you'll not find node.tpl.php file inside templates folder. You have copy from zen (theme)--> templates folder to your theme's template folder.
  • Next,open node.tpl.php file in you favorite editor.
  • search for the code as shown in below screenshot:








  • What we want to do is wrap the above code inside an if statement so that the resulting block looks something like the following:












  • Now clear the cache and rebuild registry.
  • To see if it's working or not , just log out from admin panel & visit the site.
  • you will see only title of a node & you're done.

Wednesday, March 12, 2014

How to show POP UP on Page Load In Magento

A client recently requested a popup on the home page. So, I decided to implement this functionality using FancyBox, which I have been using quite a bit lately.
The first step is to add the css and Jquery to your head.phtml file which is located at app --> design --> frontend -->  default --> metro-blue(this is my theme folder) --> template -->page -->html . and then upload the  Jquery Files and css files into the appropriate folders.
Add following files to the head.phtml file as shown below:
  • <link rel="stylesheet" type="text/css" href="<?php echo $this>getSkinUrl('fancybox/jquery.fancybox-1.3.4.css');?>" media="screen" />
  • <script type="text/javascript" src="<?php echo $this->getSkinUrl('fancybox/jquery.fancybox-1.3.4.js');?>"></script>
  • <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  • <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  • <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl('bootstrap/jquery-ui.css');?>" media="screen" />
Once you have done that, load your home page and check in source code (right click view source) that you can actually click thru the links in source code to the jquery.min.js, jquery.fancybox-1.3.4.js, and jquery.fancybox-1.3.4.css files. If you cannot click thru to the actual file, take a look at where you are uploading the jquery and css files.

Please note use of jQuery, which is using no-conflict mode (required in Magento).To check this,open head.phtml and go to the end of document & you'll see code like this:


<script type="text/javascript">


  jQuery.noConflict();
  // Code that uses other library's $ can follow here.
</script>

if such code not found in head.phtml then just add to it.
Once you are sure that  these files are loading, you want to enter the following in your home page content, above everything else, shown here:

  • Login to Magento admin panel.
  • Navigate to CMS -> Pages-> home .
  • Click on content part on left side. On right side, click on html link as shown in below screenshot.

  • add the below code using editor on home page.Here,i m showing jquery tabs on page load.

<script type="text/javascript">// <![CDATA[


jQuery(document).ready(function () {
           jQuery.fancybox({
            'width': '800px',
            'height': '700px',
            'transitionIn': 'fade',
            'transitionOut': 'fade',
            content: '<div id="tabs"><ul><li><a href="#tabs-1">EXECUTIVE</a></li><li><a href="#tabs-2">DELUX</a></li><li><a href="#tabs-3">SUPER-DELUX</a></li><li><a href="#tabs-4">CREAM-CLUB</a></li></ul><div id="tabs-1"><p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus.<br>For more Information <a href="http://www.lolo24.com/index.php/admin/cms_wysiwyg/directive/___directive/e3tzdG9yZSB1cmw9J2V4ZWN1dGl2ZS5odG1sJ319/key/25a2c64d0f7833bc5f613208227d29f8/"><b>CLICK HERE</b></a></p></div><div id="tabs-2"><p>All our products in deluxe category are awesome, Precious, making our offers a true.</p><a href="http://www.lolo24.com/index.php/admin/cms_wysiwyg/directive/___directive/e3tzdG9yZSB1cmw9J2RlbHV4ZS5odG1sJ319/key/25a2c64d0f7833bc5f613208227d29f8/"><img src="http://www.lolo24.com/index.php/admin/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvaW5mb3J0aXMvdWx0aW1vL2N1c3RvbS9VbnRpdGxlZC00LmpwZyJ9fQ,,/key/25a2c64d0f7833bc5f613208227d29f8/" alt="" /></a></div><div id="tabs-3"><p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. bia nostra, per inceptos himenaeos. </p></div><div id="tabs-4"><p>HEllo. </p></div></div>'
           });
jQuery( "#tabs" ).tabs();
});
// ]]></script>
  • If you clear your browser cache and go to your homepage, you should now see a popup on home page as shown below.This is what your popup should look like on page load…









How cool is that???