Automatic Category Lists in FarCry (a la WordPress)

This entry is part 4 of 4 in the series FarCry Tutorials

In this tutorial, I want to share how I went about using the <skin:genericNav> tag from FarCry, combined with a custom function, to create an archive of similarly categorized items. This culd be considered similar to WordPress’s category or tag view, in which all the posts matching the category are shown. I’ve extended this idea for FarCry by allowing any number of different types to be shown.

Continue reading

Using the FarCry Profiling API & Webskin Tracer

This entry is part 3 of 4 in the series FarCry Tutorials

FarCry Tray with ProfileThe FarCry profiling API that became available with FC6.0.6 is a godsend for figuring out why some pages load slowly. For example, I have a couple of ‘displayTypeBody’ pages that load in 7 seconds, while normal HTML pages generally load in less than 0.3 seconds. Huge difference!

Frankly, I had always just ignored this, but learning of the profiling tools available in FC6 made me look at the problem again. Turns out, it wasn’t a caching issue like I expected. Now I had to dig in and see what was it in the code I wrote that was causing things to slow down!

Continue reading

Creating a “Duplicate” button in FarCry

This entry is part 2 of 4 in the series FarCry Tutorials

Update: This tutorial has been superseded by the native copy button available in (I think) FarCry 6.0.11+. However, the same principle here would hold for adding any other button to the bar! Furthermore, the changes to objectadmin suggested at the bottom were approved by the FarCry devs, so the solution is event easier.

Recently I was tasked with creating a “duplicate” button for the event type in FarCry. It turns out that while adding a button is actually easy, the hard part was ensuring that the rest of the default buttons didn’t disappear.

Continue reading

Resetting individual types etc., in FarCry

This entry is part 1 of 4 in the series FarCry Tutorials

Recently, I have had the need to programmatically reload type metadata for a specific type in FarCry. Since I’m usually working on a dev copy on my laptop (which is underpowered), I don’t want to take the time to reset all the types together. This is especially useful if you need to do something similar on a production server, where downtime should be kept to a minimum.

Updated!

Continue reading