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
An overview of all methods and variables available using the `craft.categories` tag.
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
Craft makes it easy for you to add a log file for your plugin. Using the static method `PluginClassName::log()`. Craft will create a new log file for you in the folder `craft/storage/runtime/logs` and name it after your plugin using all lowercase letters `pluginname.log`
Read More »
Ben Parizek
To display a list of categories that are in use (and make sure you are not displaying any categories that don't have content associated with them), you will need to take a couple of steps. Here's a barebones examples of the code we will need, and we will break it out into more detail below.
Read More »
Ben Parizek
On a Single page or within a Channel or Structure craft.entries loop, you can access all of your fields using the `entry` variable. You can access the first image in an Assets field in the following way...
Read More »
Ben Parizek