Commit d1710bac4bd1658bb71d6bfc25f1b8a0a31e700e
1 parent
061e93fa
Handle breadcrumbs giving URLs or giving controller actions and query
strings. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3843 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
18 additions
and
4 deletions
templates/ktcore/standard_page.smarty
| @@ -66,16 +66,30 @@ | @@ -66,16 +66,30 @@ | ||
| 66 | { /if } | 66 | { /if } |
| 67 | <td valign="top" {$cbgcolour}> | 67 | <td valign="top" {$cbgcolour}> |
| 68 | { if $breadcrumbs} | 68 | { if $breadcrumbs} |
| 69 | - { foreach name=bc from=$breadcrumbs item=breadcrumb } | 69 | + <p class="breadcrumbs"><span |
| 70 | +class="intro">You are here: </span> <span class="breadcrumbs"> | ||
| 71 | + { foreach name=bc from=$breadcrumbs item=breadcrumb } | ||
| 70 | { if $smarty.foreach.bc.first } | 72 | { if $smarty.foreach.bc.first } |
| 71 | - <a class="primary" href="{$breadcrumb.url}">{$breadcrumb.name}</a> | 73 | + {if $breadcrumb.url} |
| 74 | + <a class="primary" href="{$breadcrumb.url}">{$breadcrumb.name}</a> | ||
| 75 | + {elseif $breadcrumb.action} | ||
| 76 | + <a class="primary" href="{$breadcrumb.action|generateControllerLink:$breadcrumb.query}">{$breadcrumb.name}</a> | ||
| 77 | + {else} | ||
| 78 | + <span class="primary">{$breadcrumb.name}</span> | ||
| 79 | + {/if} | ||
| 72 | { else } | 80 | { else } |
| 73 | - <a href="{$breadcrumb.url}">{$breadcrumb.name}</a> | 81 | + {if $breadcrumb.url} |
| 82 | + <a href="{$breadcrumb.url}">{$breadcrumb.name}</a> | ||
| 83 | + {elseif $breadcrumb.action} | ||
| 84 | + <a href="{$breadcrumb.action|generateControllerLink:$breadcrumb.query}">{$breadcrumb.name}</a> | ||
| 85 | + {else} | ||
| 86 | + {$breadcrumb.name} | ||
| 87 | + {/if} | ||
| 74 | { /if } | 88 | { /if } |
| 75 | { if !$smarty.foreach.bc.last } | 89 | { if !$smarty.foreach.bc.last } |
| 76 | » | 90 | » |
| 77 | { /if } | 91 | { /if } |
| 78 | - { /foreach } | 92 | + { /foreach } </span> |
| 79 | { /if } | 93 | { /if } |
| 80 | { foreach item=errorMessage from=$errormessages } | 94 | { foreach item=errorMessage from=$errormessages } |
| 81 | <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table> | 95 | <table border="0"><tr><td><p class="errorText">{$errorMessage}</p></td></tr></table> |