Solved

Difference between libraries and modules in Drupal?

Posted on 2013-12-11
2
327 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 10

Accepted Solution

by:
oliverpolden earned 500 total points
ID: 39712286
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
ID: 39715367
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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