By default, when you setup a [multi-environment config](http://buildwithcraft.com/docs/multi-environment-configs), Craft compares the key in your multi-environment config array to the PHP `$_SERVER['SERVER_NAME']` variable to test which environment matches. If the key in your array is contained within the `$_SERVER['SERVER_NAME']` variable, Craft considers the option a match.
Read More »
Ben Parizek
The default Rich Text field in Craft CMS comes with three options to use as your toolbar: Default, Simple, and Standard.
Read More »
Ben Parizek
Craft makes it extremely easy for us to interact with the content in our database within our templates. Perhaps the most useful item for this is the Craft `entry` variable.
Read More »
Ben Parizek
Twig is the templating language used to display your content in your Craft CMS templates. While there is a lot to learn about Twig, this article will focus on a few key concepts that can get you started, and take you far.
Read More »
Ben Parizek
The `registerCpRoutes()` method in our primary plugin class `PrimaryClassName.php` allows to route a particular URL to a template.
Read More »
Ben Parizek
Craft is a powerful tool to manage relations between your content. Craft doesn't have a single "relationship" field, but several relational field types. These include Entries, Assets, Users, Categories, and Tags.
Read More »
Ben Parizek
As we design and develop websites we don't always have all of the final resources for a project available to us. In the case that you just need to output some repeating items on your page, you can use this code snippet...
Read More »
Ben Parizek
Many websites have an archive page that displays content based on the date in the URL. To create an archive page in Craft we need to take a couple of steps...
Read More »
Ben Parizek
The following is an outline for looping through a Single, Channel, or Structure entry with multiple Entry Types in which some of your Entry Types may include a Matrix Field and which some of your Matrix Field's blocks may include an Assets field.
Read More »
Ben Parizek