Solved

Difference between libraries and modules in Drupal?

Posted on 2013-12-11
2
321 Views
Last Modified: 2014-01-14
1) Purpose of the Colorbox module / library ?

2) What's the difference  between a Module and Library in Drupal ?
0
Comment
Question by:sandshakimi
2 Comments
 
LVL 9

Accepted Solution

by:
oliverpolden earned 500 total points
Comment Utility
Hi,

The colorbox module is used for popups. Typically for viewing a larger image.
A module interacts directly with Drupal and can be enabled/disabled from within the modules administration. A library is usually Drupal agnostic code, code that will run on any PHP website, (or any website if it is a Javascript library).

To illustrate in the case of a popup module such as Colorbox, the module defines all the functionality to allow end users to configure the module, whereas the library holds the Javascript code and styling that actually drives the colorbox itself.

P.S. I've seen you ask a lot of questions, are you currently learning Drupal and/or building or maintaining an existing site?

Kind regards,
Oliver
0
 
LVL 17

Expert Comment

by:nanharbison
Comment Utility
The color box module is awesome. You can make any group of images be clickable to see a larger pop up version, and if you set up images in a row, you can click on the large pop up version to go to the next one, so it's like a slide show.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now