Solved

Difference between libraries and modules in Drupal?

Posted on 2013-12-11
2
334 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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 …
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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