switching layouts with Fusebox

Fusebox Add comments

So, I’ve been working on my site to increase the ‘viewability’ across multiple platforms and it’s just so easy!!!!! Recently, I’ve been looking at my extending my site so i can work on it/edit from a PocketPC.

Armed with Firefox and the user agent switcher (here) i added some logic to my site just before i apply my layouts;

<fuseaction name=“apply”>
      <!– check browser, to determine which layout to apply –>
      <if condition=“cgi.HTTP_USER_AGENT contains ‘Windows CE’”>
         <true>
            <include template=“#layout#_ppc.cfm” />
         </true>
         <false>
            <include template=“#layout#.cfm” />
         </false>
      </if>
   </fuseaction>

Using the user agent switcher i can flip Firefox to appear as a PocketPC so it then uses the PPC template which minimizes the Javascript calls and CSS usage since the PocketPC browser is severely lacking in this department.

Fusebox really is neat!

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in