Here's some code I'm using to generate Breadcrumbs on my site. Unfortunately the client has quite specific requirements in terms of URLs, so I've had to play around with Crumbly's tag a little using an If statement:
{if segment_1 == "search"}
{exp:crumbly:breadcrumbs custom_url:pattern="template_group/template/ignore"}
{if:elseif segment_2 == "search"}
{exp:crumbly:breadcrumbs}
{if:else}
{exp:crumbly:breadcrumbs}
{/if}
{if count > 1}
{if 1 == 1}
<span class="divider">»</span>
<li>
<a href="{if count != total_results}{breadcrumb_url}{if:else}#{/if}">
{breadcrumb_title}
</a>
</li>
{/if}
{/if}
{/exp:crumbly:breadcrumbs}
Unfortunately, EE's template, when saved, warns me this:
{exp:crumbly … No closing tag found. Note: some tags do not require closing. Please consult the module's documentation if you experience problems.
However I hope you can see it should just be a warning, as the closing tag is present.
Here's the main problem. When I load the page, I get this:
Parse error: syntax error, unexpected T_ELSEIF in /nfs/c09/h02/mnt/135913/domains/mysite.com/html/system/expressionengine/libraries/Functions.php(683) : eval()'d code on line 75
Any ideas?