This project has moved. For the latest updates, please go here.

BreadCrumb

Nov 16, 2010 at 5:27 PM
Edited Nov 16, 2010 at 5:29 PM

If anyone is interested in a breadcrumb then here is the way I have implemented mine.

<!--.breadcrumb-->
<div class="breadcrumb">
   
    ##Sets the Breadcrumb separator once
    #set ($bcSeparator = "&raquo;")
   
    <a href="/">Home Page</a>
    #if ($where != "search" && $where != "tag")
       
        #if ($!category.Parent.name)
            $bcSeparator <a title="$category.Parent.name" href="$category.Parent.url">$category.Parent.name</a>
        #end
       
        #if ($!category.Name && $category.Name != "Uncategorized")
                $bcSeparator
            #if ($!post.Title)
                <a title="$category.Name" href="$category.url">$category.Name</a> $bcSeparator
            #else
                $category.Name
            #end
        #end
       
        #if ($!post.Title)
            $post.Title
        #end
   
    #elseif($where == "search")
        $bcSeparator Search results for: "$macros.SearchQuery"
   
    #elseif($where == "tag")
        $bcSeparator Posts Tagged As: "$tag"
   
    #end
   
</div>
<!--/.breadcrumb-->

Nov 22, 2010 at 11:27 AM

Thanks, it works well.