Category Selected:

tutorials

Blog

Injecting Functions with WireBox

Brad Wood |  January 31, 2017

This is a guest post by Eric Peterson.

I had a unique use-case the other day, and I wanted to share the solution with you all.

I use [a custom `Collection` component](https://github.com/elpete/CFCollection) to handle many higher-order functions like map, reduce, filter, etc. Basically, it wraps an array or a query and lets you continue chaining these functions, kind of like [wrapping a value with lodash in Javascript](https://lodash.com/docs/4.17.4#lodash).

Read More

Tips for handling ColdBox module routing with nested modules

Brad Wood |  January 24, 2017

ColdBox modules have revolutionized the way that CFML developers can reuse and organize code.  Modules follow an HMVC, or Hierarchical MVC pattern that allows you to not only break apart your CFML app into smaller chunks, but to stack those pieces into a hierarchy that really makes sense of your code.  We also call this module inceptions-- the act of nesting modules inside of each other.  

So with that in mind, a question came across the ColdBox Google group today asking about how to access events from within nested modules and how that manifests itself in the URL.  Before I responded, I spun up a quick site in CommandBox to test and I found to my dismay that the answer was very difficult to find in our docs.  As such, I figured a quick blog post was in order since it's fairly easy to set up if you know what to do.

Read More

The 12 Tips of (CommandBox) Christmas - Day 12 - Custom Error Pages

Brad Wood |  December 26, 2016

This is our final installment of the 12 Tips of (CommandBox) Christmas and we hope you've learned some new tricks!  In this last segment, we'll cover setting up custom error pages for your CommandBox-based web servers.  This applies to all CF engines that you start and can help you add a bit of polish to a CommandBox-powered site you want to make public! 

Read More

The 12 Tips of (ContentBox) Christmas - Day 12 - Installing ContentBox in seconds

Gavin Pickin |  December 26, 2016

As we continue with our 12 Tips of (ContentBox) Christmas, we at Ortus Solutions are giving you a gift of developer productivity, we will share a few tips and tricks that will keep giving all year around. Brad Wood is also doing 12 Tips of (CommandBox) Christmas.

How do I get started with ContentBox?

Read More

The 12 Tips of (CommandBox) Christmas - Day 11 - Semantic Versioning

Brad Wood |  December 25, 2016

Merry Christmas everyone!  We hope you had special time with your family and loved ones.  You may have a new year's resolution to learn something new.  Well, why wait when you can learn something new right now!  Today in our 12 tips of (CommandBox) Christmas, we'll do a quick crash course on semantic versioning, or semver as you'll oft see it called.  You may think you know everything, but keep reading and I'll bet you learn something.

Read More

The 12 Tips of (ContentBox) Christmas - Day 11 - Migrate to ContentBox

Gavin Pickin |  December 25, 2016

As we continue with our 12 Tips of (ContentBox) Christmas, we at Ortus Solutions are giving you a gift of developer productivity, we will share a few tips and tricks that will keep giving all year around. Brad Wood is also doing 12 Tips of (CommandBox) Christmas.

If you have been following along, we have provided a lot of solid tips for using ContentBox, but one of the big ones, is how to migrate to ContentBox. Luckily, we have you covered. You can import from WordPress, Mango, MachBlog and BlogCFC from the Import Tools.

Read More

The 12 Tips of (CommandBox) Christmas - Day 10 - Converting Apache and IIS URL Rewrites

Brad Wood |  December 24, 2016

Christmas baking has probably began in your house, filling the air with the sweet aroma of sugar, carbs, cholesterol, and partially hydrogenated oil.  Mmm, just like Grandma used to make!  What better time to cook up a new development environment that runs on CommandBox!  

URL rewriting is common on many server setups and while everyone does the same basic things, the config files they use vary greatly based on the web server they have in play.  CommandBox allows for URL rewriting, but a common question I get is how to convert the rewrites people already have on their existing web servers so CommandBox can use them.

Read More

The 12 Tips of (ContentBox) Christmas - Day 10 - Content Import and Export

Gavin Pickin |  December 24, 2016

As we continue with our 12 Tips of (ContentBox) Christmas, we at Ortus Solutions are giving you a gift of developer productivity, we will share a few tips and tricks that will keep giving all year around. Brad Wood is also doing 12 Tips of (CommandBox) Christmas.

Whether you have a website with a lot of traffic, or not, it pays to have a test / staging site setup to test out changes to your website. One of the biggest problems with having a staging and production website, is moving data from one environment into another. This need inspired the Content Import and Export features in ContentBox. This handy feature is today's tip. Let's learn how it works.

Read More

The 12 Tips of (CommandBox) Christmas - Day 9 - Command line integrations

Brad Wood |  December 23, 2016

Over the river and through the woods to grandmother's house we go.  There's a lot of ways to get to grandmother's house just like there a lot of ways to use CommandBox in your workflow. In today's edition of the 12 tips of (CommandBox) Christmas, we'll hopefully teach you some new tricks. Oh-- and while you're at grandma's, tell her to stay away from those reindeer!  

Read More

The 12 Tips of (ContentBox) Christmas - Day 9 - Menu Manager

Gavin Pickin |  December 23, 2016

As we continue with our 12 Tips of (ContentBox) Christmas, we at Ortus Solutions are giving you a gift of developer productivity, we will share a few tips and tricks that will keep giving all year around. Brad Wood is also doing 12 Tips of (CommandBox) Christmas.

ContentBox's default navigation is based on your Pages. You can add edit and delete pages in the admin under Content > Site Map. Sometimes you need more than page to make your website. The menu manager allows you to create 'Menus' to be used in a variety of ways in your ContentBox Website. A Menu can contains several Items, which can be from a range of Item types, Content like Pages and Blog posts, Media, Submenus, URLs, JS or Free type. Menus are easy to create, and give you a lot more options that relying on pages inside your traditional Sitemap structure.

Read More