Solved

Difference between libraries and modules in Drupal?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I Drupal 6 and/Captcha Expertise 8 294
Drupal 7 - Styles not rendering in newly added content 5 386
Cancel Node Button 1 125
Linux/Apache File Ownership/Permissions 1 77
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 …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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