Testing and data validation are important parts of any software development projects. In this tutorial we'll see how to validate information entered into a Drupal form and learn how to test modules as a whole.
Drupal is one of the most popular open source content management systems today. Unfortunately the default Drupal installation often requires a lot of customization to meet an organization's needs, so you have to rely on Drupal's thousands of extensions to tailor the software to do exactly what you want, and that takes time. It would be easier if you could install Drupal with all the extensions that you want to use straight out of the box – and you can do just that by using Drupal distributions.
In this third article in her series on coding custom Drupal modules, Juliet Kemp shows us how to set up a configuration form and hook it to a Drupal menu, including code examples and dos and don'ts.
In our previous tutorial, we got started setting up a custom module for Drupal 7. Modules make Drupal immensely powerful and flexible, and it's well worth learning how to make your own if only to get a better understanding of how the various contributed modules available to everyone work. In this second part, we'll learn to use the Drupal Database API to get data out of a site, and to write a hook to show a block on the site.
The open source content management platform Drupal is powerful enough off the shelf, but the ease with which you can add extra modules and the flexibility that capability offers make it even more powerful.
Drupal, the popular CMS platform, doesn't just allow you to create and manage content. You can also set up reporting options to find out more about how your site is being used and visited. Data on user access, content creation, user interaction, and other metrics can help you to modify your site to provide a better experience for users. Reports also support you in assessing how well you're meeting your goals for the site. Let's set up some basic reporting in Drupal 7, and see how to use the View and Google Analytics modules to get more report data.
It's easy to get started with the search server Apache Solr and the popular CMS platform Drupal, as described in our previous tutorial on setting up Solr 4.2 with Drupal 7. Straight out of the box Solr handles basic text searching, but you can increase its power by adding faceted search – the ability to filter on specific facets or aspects of the data on a site. For example, on a Drupal site you might want to be able to filter your searching by author, date, or tags. Solr's faceted search allows users to combine this type of filtering with text searching to find the information they're after faster. Read on for the lowdown on setting up and configuring basic faceted search using Solr 4.2 and Drupal 7, running on Apache on Linux.
Solr is an open source search server based on Apache Lucene. Lucene provides Java-based indexing and a search library, and Solr extends it to provide a variety of APIs and search functionality, including faceted search and hit highlighting, and handles Word and PDF document searching. It also provides caching and replication, making it scalable, robust, and very fast.
For years, MySQL has been the king of open source database servers. It powers a large part of the web and numerous applications worldwide. However, concerns about the future of MySQL since its acquisition by Oracle, combined with an increasing demand for performance and scalability, have driven people to consider alternative options, such as PostgreSQL and MongoDB. Switching to either of those alternatives, however, is not a simple proposition. MariaDB, by contrast, offers enhanced performance in a DBMS that can be a drop-in replacement for MySQL.
One of the challenges of working within today's enterprise space is trying to juggle a multitude of web applications to handle all of your company's needs. You may be able to meet a significant number of those needs with a single application: Alfresco. This enterprise content management portal uses multiple software packages to provide document management, web content, records management, and general collaboration.