That works.
Another solution would be to create a web link in MODx pointing to your home page. It could be in an out of the way place (not in the browse-able hierarchy) and then set the home crumb to this link. The advantage to this technique would be all breadcrumb links would be handled by the Breadcrumbs snippet. This is of interest when considering styling because the first crumb will get the first_crumb class assigned to it. If you were to just add that crumb in your template, then the second crumb would have the class first_crumb - which may not matter to you, but then again it might. Or it might in the future.
Just a thought.
’defaultList’ => array(
’crumb’ => ’<li>[+crumb+]</li>’,
’separator’ => ’’,
’crumbContainer’ => ’<ul class="[+crumbBoxClass+]">[+crumbs+]</ul>’,
’lastCrumbWrapper’ => ’<span class="[+lastCrumbClass+]">[+lastCrumbSpanA+]</span>’,
’firstCrumbWrapper’ => ’<span class="[+firstCrumbClass+]">[+firstCrumbSpanA+]</span>’
),
<ul class="B_crumbBox"><li><span class="B_lastCrumb"><span class="B_firstCrumb"><span class="B_currentCrumb">Memberships</span></span></span></li></ul>
<ul class="B_crumbBox"><li><li class="B_lastCrumb"><li class="B_firstCrumb"><span class="B_currentCrumb">Memberships</span></li></li></li></ul>
’lastCrumbWrapper’ => ’<li class="[+lastCrumbClass+]">[+lastCrumbSpanA+]</li>’,
// ’firstCrumbWrapper’ => ’<li class="[+firstCrumbClass+]">[+firstCrumbSpanA+]</li>

Actually, since you only have one crumb in your list, yes it is. It is the first and last and current crumb. I don’t remember ever specifically testing the one crumb scenario, but it makes sense that that’s what the output would be.
...
and I get this output
<ul class="B_crumbBox"><li><span class="B_lastCrumb"><span class="B_firstCrumb"><span class="B_currentCrumb">Memberships</span></span></span></li></ul>Not very semantical eh?!
'plainList' => array(
'crumb' => '<li>[+crumb+]</li>',
'separator' => '',
'crumbContainer' => '<ul class="[+crumbBoxClass+]">[+crumbs+]</ul>',
'lastCrumbWrapper' => '[+lastCrumbSpanA+]',
'firstCrumbWrapper' => '[+firstCrumbSpanA+]'
),
Actually, since you only have one crumb in your list, yes it is. It is the first and last and current crumb. I don’t remember ever specifically testing the one crumb scenario, but it makes sense that that’s what the output would be.
I do need more than one crumb. It was the first test and I didn’t bother to turn on the ’Home’.Actually, since you only have one crumb in your list, yes it is. It is the first and last and current crumb. I don’t remember ever specifically testing the one crumb scenario, but it makes sense that that’s what the output would be.
...
and I get this output
<ul class="B_crumbBox"><li><span class="B_lastCrumb"><span class="B_firstCrumb"><span class="B_currentCrumb">Memberships</span></span></span></li></ul>Not very semantical eh?!
'plainList' => array( 'crumb' => '<li>[+crumb+]</li>', 'separator' => '', 'crumbContainer' => '<ul class="[+crumbBoxClass+]">[+crumbs+]</ul>', 'lastCrumbWrapper' => '[+lastCrumbSpanA+]', 'firstCrumbWrapper' => '[+firstCrumbSpanA+]' ),
<ul class="B_crumbBox"> <li><a class="B_homeCrumb" href="/home.html" title="title text">Home</a></li> <li><a class="B_crumb" href="/club_benefits.html" title="tttt">Club Benefits</a></li> <li><span class="B_currentCrumb">Personal Training</span></li> </ul
, also there is an incentive to place the class directly in the <li>, for example, if you use background image or border (right) as seperator, there is no way to ’border-right:none’ for the last <li> right now.