breadcrumb home linking?

peman

Joined: 2005-05-28
Posts: 3
Posted: Fri, 2005-06-03 17:09

Hi
I've installed gallery2 and wordpress blog and the plugin wpg2. In my navigation .tpl theres a breadcrumb trail and the home link is wrong, anyone know how to change that link?

{*
 * $Revision: 1.20 $
 * If you want to customize this file, do not edit it directly since future upgrades
 * may overwrite it.  Instead, copy it into a new directory called "local" and edit that
 * version.  Gallery will look for that file first and use it if it exists.
 *}
{if $layout.show.pathbar}
<div id="gsSystemLinks" class="gcBorder1">
  <div>
    {if $layout.show.sidebarGreeting}
    <span style="font-weight: normal">
      {g->text text="Welcome, %s" arg1=$user.fullName|default:$user.userName}
    </span>
    {/if}
    {foreach from=$layout.systemLinks item=item}
    <span>
      <a href="{g->url params=$item.params}">{$item.text}</a>
    </span>
    {/foreach}
  </div>

  <ul class="gbBreadCrumb">
    {section name=parent loop=$layout.parents}
    <li{if $smarty.section.parent.first} class="firstChild"
	  <a href="/"> {g->text text="Home"} </a>
      {/if}>
      {if !$smarty.section.parent.last}
	<a href="{g->url arg1="view=core:ShowItem" arg2="itemId=`$layout.parents[parent].id`"
	 arg3="highlightId=`$layout.parents[parent.index_next].id`"}">
	  {$layout.parents[parent].title|default:$layout.parents[parent].pathComponent|markup}
	</a>
      {else}
	<a href="{g->url arg1="view=core:ShowItem" arg2="itemId=`$layout.parents[parent].id`"
	 arg3="highlightId=`$layout.item.id`"}">
	  {$layout.parents[parent].title|default:$layout.parents[parent].pathComponent|markup}
	</a>
      {/if}
    </li>
    {/section}
    <li{if empty($layout.parents)} class="firstChild"
	    	<a href="/"> {g->text text="Home"} </a>
	{/if}>
	{$layout.item.title|default:$layout.item.pathComponent|markup}
    </li>
  </ul>
</div>
{/if}

my gallery2 is installed in http://ekoxens.com/wordpress/gallery2
and my blog is in http://ekoxens.com/wordpress
the breadcrumb home link refers to http://ekoxens.com but its supposed to refer to http://ekoxens.com/wordpress

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Fri, 2005-06-03 18:46

Please note that there are separate forums for G1 and G2.

Since your questions are for G2, I'm moving this thread over there!

Gaile