Skip to content
Sitemason - Build on Us

Sitemason Blog

Publishing some code, finally!

In 35 years of writing code, I have taken advantage of plenty of modules and libraries written by other people. It is part of what makes programming so fantastic. You never have to reinvent the wheel unless you really want to.

Despite that, I have never contributed a module myself. The excuse is that it would take a lot of time to make my modules available to others.

Coda2 Plugin Set for Lists

Updated Dec. 10, 2013

Click to Download Coda2 PluginsThe Coda 2 List Transformer Plugin was recently updated by Tim for the Coda 2.5 beta and upcoming plugin store. Major improvements include automatic recognition of list type so there are now 20 functions that apply to 5 different list types: Comma, Line Break, Space, Tab, and Unordered/Ordered Lists. That's 100 total functions, including new math functions too! Original text from 5/29/2012 is after the break.

Designing for a Successful Web Project

Illustration by Kevin Kennedy - strazi.orgAt Sitemason, we're lucky to work with a lot of really talented design partners. We also work with designers at various stages in their career. When working with beginners, we often see folks with tons of design talent, but sometimes they're a little green when it comes to designing for a successful web project.

After the break we consider design best practices for a project's ultimate success from the view of the client and web developer.

Illustration by Kevin Kennedy, strazi.org

Developer Tips: Custom Navigation

No matter how helpful Sitemason Library methods are, sometimes you gotta go custom. One common requirement is to break out from basic navigation menus to customize the display of a site's navigation. A simple example below:

One Level Navigation

<ul>
<?php
    foreach ($content_xml->nav as $nav) { 
        echo '<li';
        if ($nav->currently_displayed || $nav->current_site) {
            echo ' class="active"';
        }
        echo '><a href="' . $nav->link . '">' . $nav->title . '</a></li>'; 
    }
?>
</ul>

Read on for more examples of customizing navigation with PHP

Recent Forum Posts

Warning: file_get_contents(https://sitemason.zendesk.com/forums/279545/entries.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /mnt/files/s/sitemason.com/www/smTemplate/inc/support/zendesk-pull.php on line 11 Warning: usort() expects parameter 1 to be array, null given in /mnt/files/s/sitemason.com/www/smTemplate/inc/support/zendesk-pull.php on line 14 Warning: Invalid argument supplied for foreach() in /mnt/files/s/sitemason.com/www/smTemplate/inc/support/zendesk-pull.php on line 17