Oke, no reply so far so i started some dirty coding myself. Until now I have
Code:<div id="breadcrumb">
<!--HOME-->
{if $CURRENT_PAGE == ''}
Home
{/if}
<!--CATEGORIE-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'jobs'}
<a href="{$BASE_URL}">Home</a> > {$current_category}
{/if}
<!--JOBS-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE != 'jobs' && $CURRENT_PAGE == 'job'}
<a href="{$BASE_URL}">Home</a> > <a href="{$BASE_URL}jobs/{$current_category}">{$current_category}</a> > {$job.title} ({$job.company} in {$job.location})
{/if}
<!--WERKZOEKENDEN-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'employee'}
<a href="{$BASE_URL}">Home</a> > Employee
{/if}
<!--WERKGEVERS-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'employer'}
<a href="{$BASE_URL}">Home</a> > Employer
{/if}
<!--CONTACT-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'contact'}
<a href="{$BASE_URL}">Home</a> > Contact
{/if}
<!--WIDGET-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'widget'}
<a href="{$BASE_URL}">Home</a> > <a href="{$BASE_URL}employer/">Employer</a> > Widget
{/if}
<!--POST-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'post'}
<a href="{$BASE_URL}">Home</a> > <a href="{$BASE_URL}employer/">Employer</a> > <a href="{$BASE_URL}post/">Post a job</a> > Write
{/if}
<!--VERIFY-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'verify'}
<a href="{$BASE_URL}">Home</a> > <a href="{$BASE_URL}employer/">Employer</a> > <a href="{$BASE_URL}post/">Post a job</a> > Verify
{/if}
<!--CONFIRM-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'confirm'}
<a href="{$BASE_URL}">Home</a> > <a href="{$BASE_URL}employer/">Werkgevers</a> > <a href="{$BASE_URL}post/">Post a job</a> > Confirm
{/if}
<!--SEARCH-->
{if $CURRENT_PAGE != '' && $CURRENT_PAGE == 'search'}
<a href="{$BASE_URL}">Home</a> > Search
{/if}
</div>
Because I don't want to hardcode every page I've written I'm trying to write a function like
Code:{if $CURRENT_PAGE == 'ARTICLE'}{$article.page_title}{else} > <a href="{$BASE_URL}{$article.url}/">{$article.page_title}</a>{/if}
Problem is that I can't figure out what to use for ARTICLE in the code above. I've tried $article.url and $article.page_title but they don't work.
I'd also would like to use the $category[tmp].name instead of the $current_category, but $category[tmp].name doesn't work. Any suggestions?
=======
Anyone? Have hardcoded the pages as you can see, but I would love to write a function for them.
Last edited by evertsemeijn (2009-02-01 14:04:26)