This video describes a number of the most important configuration files within MAMP that are commonly edited in order to run a web application like Drupal locally. There's a brief tour of the http.conf file, and then walks through the process of upping the max_allowed_packet limit from 1M to 2M within the my.cnf, which was a renamed copy of the my-large.cnf file. It's also a good idea to turn off binary logging on your local development by commenting out log-bin and binlog_format lines within this my.cnf file. Addi then shows you how to raise the PHP memory unit from 32M to 256 by opening the php.ini file and changing the memory_limit value. Finally, she shows you how to use MAMP's version of PHP and MySQL from the commandline by editing your .bash_profile and adding a number of paths to your default PATH. Note: The configuration files may have moved between versions of MAMP. You should check for where the MySQL cnf files are for your specific version of MAMP. A quick Google search can probably get you set in the right direction.
To learn how to install MAMP, see the Installing MAMP Server tutorial.
Additional resources
More information on Development Environments
This video shows you how to download and do the initial setup of MAMP, which is Apache, MySQL and PHP for Macintosh. It shows some basic configuration tweaks to change the port from 8888 to the default of 80 so that you can just visit the localhost in the browser and get your Drupal installation to appear. It also provides a general orientation to MAMP, and some other initial configuration setting changes.
Next up: MAMP Server Configuration
Additional resources
More information on Development Environments
This video walks through the process of downloading and doing the initial configuration of WampServer, which is Apache, MySQL and PHP for Windows. It shows how to turn it on and off, as well as how to get files to show up from the localhost server.
Next up: WampServer Configuration.
Notes:
If after installing WAMP you get a 404 error, make sure the server is actually running. Navigate to wampserver > apache > service > install service... opens prompt, hit enter... wampserver icon turns green.
Additional resources
More information on Development Environments
This screencast covers the following topics:
- Manual import/export of Page manager settings.
- Import/export using Features.
- Some words about the custom rulesets module.
- Some words about the custom content panes module.
- Some words about the stylizer module.
- Some words (but not enough!) about mini panels.
- Some words about Panels everywhere.
- Some words and a quick demonstration of Panels in-place editor.
This screencast covers the following topics:
- Rearranging the node edit form with Panels.
- Some words about how the render arrays in Drupal 7 makes this possible.
The Views Context
FreeThis screencast covers the following topics:
- Creating a Context display type in Views.
- Placing individual View rows in your custom page.
- Displaying other View render elements in your custom page (such as the pager or header).
- Using the View context to load further contextual object.
This screencast covers the following topics:
- Adding new contextual objects with manual selection.
- Adding new contextual objects with relationships.
- Chaining contextual objects, with the example of loading a node term, and then loading the term top level parent (or not).
This tutorial covers the following topics:
- The Contextual Administration module and variant type.
- Auto-populating node reference fields for new nodes.
- A quick glance at other functionality in Contextual Administration: vocabulary administration pages, user administration pages, quick content handling pages, and more.
- Using the local actions menu type.
This screencast covers the following topics:
- Creating custom paths with Page manager
- Defining required and optional wildcards in a path
- Loading contextual objects from path arguments
- Creating access rules for custom pages
- Creating menu tabs, local actions and other visible menu items
- Making menu items only show in certain circumstances, such as only on selected node types
Panel Pane Settings
FreeThis screencast covers the following topics:
- Using visibility rules to determine when panes should show
- Using per-pane or per-page caching
- Setting caching granularity to per context or per argument
- Editing basic pane settings
- Moving panes between different panel regions
- Some layout settings for panes
More View Panes
FreeThis screencast covers the following topics:
- Setting name, description and category for view panes
- Overriding the title of the view
- Overriding the number of items to display
- Some other override options
- The "context is optional" setting for argument input/contextual filter value input
This screencast covers the following topics:
- Setting up contextual filters with Views Content Panes
- Getting argument input (contextual filter value) to a Views Content Pane
- Embedding a Views content pane in a panel
This screencast covers the following topics:
- What is Panels?
- Selecting Panels layout
- Disabling block regions on a panel page
- Adding content to a panel
- Outputting individual node fields in a panel page
- Manually setting the title on a panel page
- Inheriting page title from a panel pane
This screencast covers the following topics:
- How to create additional variants to a custom page
- How to set selection rules with more than one condition
- Why the order of variants is important, and how to change their order
This screencast covers the following topics about the Page Manager module, which is a module included within CTools.
- The basic framework of Page manager – creating custom paths and assigning content/reactions to them
- Mentioning some modules that can be used with Page manager, such as Panels and Contextual administration
- Overriding node templates to allow customized content/reaction
- Introduction to variants
- Introduction to selection rules
- Using the HTTP response code variant type, and using it for redirections
- Introduction to context or contextual objects
In this introductory video we go over what you should already know to get the most out of this series. We also describe topics covered in each of the 13 episodes – over 2 hours in total.
Each episode covers just one concept, when possible, so you can get the most out of them without getting overwhelmed.
If you need to brush up on Views, you can watch our Intro to Views for Drupal 7 series.
Learning Page Manager
CourseWhat is version control? Why should we be using it? Where do we even start? Managing your code is very important, both to make sure you don't accidentally lose a lot of work, but to also make it clear who is working on what and be able to track those changes over time. There is a big world of version control systems and this Do it with Drupal session with Blake Hall will explain the general concepts and best practices around using version control, as well as provide some demonstrations of one of the most popular ones being used today, Git.
Additional resources
This screencast shows how you can use Rules to alter the presentation of your Drupal site, such as:
- Enabling, disabling and moving blocks around
- Setting HTML title element and also on-page titles
- Setting body classes
- Setting the active menu item (using Menu Position)
Some bigger questions about using Rules for altering presentation is also discussed:
- Using Rules for presentation altering is relatively heavy. (It consumes about 2.5 MB more PHP memory than Context, and has about the same loading times – judging from a first, rough comparison.)
- Using Rules for presentation altering gives a more complex UI than the interface use for modules made for more particular use cases.
- It is possible for modules to provide alternative user interfaces to Rules.
- Rules allows reusing actions in many different situations, between different modules.
- Rules (and Entity API) provides generalized data handling.
Additional resources
Rules guide (Drupal.org)
This screencast shows some functionality included in Rules Bonus Pack, as an example of how to make Rules integrate with other modules on your site. In particular it shows some Views and CTools/Page manager integration.
- Condition: Check the number of results from a view.
- Action: Load the sum of a Views column as a number. (Currently only D6!)
- Action: Load the first result in a view into Rules.
- Action: Clone a full node object.
- Action: Convert a number into a date
- Event: Trigger a rule when a custom page is rendered.
- Special: Allow Rules condition components to be used as CTools access plugins.
Additional resources
Rules guide (Drupal.org)