Skip to content
Sitemason - Build on Us

Sitemason Blog

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

Developer Tips: Custom Queries for Live Testing

Today we're launching a new series for developers to regularly offer tips and tricks for developing in the Sitemason environment. Our first tip is to use custom queries for testing code on a live site. 

One thing that is very different for developers working on the Sitemason platform for the first time is developing in a live production environment. Read more to learn about a great way to easily switch between test and production code. 

Updated: Building Sitemason 6 at BarCamp Nashville Oct 20th

BarCamp 2012 logoUpdate: My BarCamp session slides and notes are available at www.sitemason.com/barcamp

For the sixth consecutive year, Nashville is hosting BarCamp, the defining "un-conference" for our technology community. This year, I have the distinct pleasure of presenting "Adventures In Building Our Dream Interface". Go get signed up for the free day of fun and learning and checkout my session. Details and more about BarCamp after the break!

Sitemason 6 Watch: Interface Font Icons

Screenshot of Sitemason's custom font icon set

For those of you keeping up with the Responsive Web Design movement and/or the progress on our new interface, we're extremely excited to show off our new font icons. As part of the interface redesign, Kevin Kennedy went back to the bottomless well that is his creative mind to invent Sitemason's own font icon set.

If you're saying, "Wait a minute, did you say Font Icons? You must be confused." I'm so glad you pointed out my penchant for confusion, but in this case, I'm not crazy. Read on for an explanation, or checkout the full Font Icon Set if your idea of a good time is perusing Webdings. Now who's crazy!…

Sitemason 6 Watch: Talking APIs with Tim Moses

As part of our look in at the continued progress of the new version of Sitemason, we asked Tim Moses, lead developer and CEO, to tell us a bit more about the new API's inner workings.

No journalists or developers were harmed in the making of this interview.

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