Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Lokking for home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-03-2007, 03:08 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Arrow Lokking for home.php

Question before i pull my hair out.

O.K. I have the DESFU mod and all is ok and is not the issue, except for one thing. The breadcrumb on the home page displays the company name and unfortunatly links to home.php, which i for the life of me cannot find to change. Ive played with the location.tpl file and the home.tpl, well just about them all really, but nothing !

All the other home links that i can find used <A href="{$http_location}/"> instead of home.php. The .htaccess files have also been updated so this is for better house keping to coin a phrase - but a real pain in the butt !!!


Can someone help me out here again.

Richard
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #2  
Old 02-03-2007, 06:01 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Lokking for home.php

Why not just <a href="/">Home</a> ?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 02-03-2007, 06:28 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Lokking for home.php

PS - here's my location.tpl -- modified for CDSEO:

Code:
{if $location} {* {strip} *} <font class="NavigationPath"> <a href="/">Home</a>&nbsp;&rarr;&nbsp; {section name=position loop=$location start=1} {if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if} {$location[position].0} {if $location[position].1 ne "" }</a>{/if} {if not %position.last%}&nbsp;&rarr;&nbsp;{/if} {/section} </font> {* {/strip} *} {/if}
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #4  
Old 02-04-2007, 05:23 AM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Lokking for home.php

Hi

All done now, but what a headache. here is how;

{* $Id: location.tpl,v 1.14 2005/11/17 06:55:36 max Exp $ *}
{if $usertype eq "C" or $usertype eq "B"}
{if $location}
<font class="NavigationPath">
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }{if $location[position].0 ne $config.Company.company_name}<a href="{$location[position].1}" class="NavigationPath">{else}<a href="{$http_location}/" class="NavigationPath">{/if}{/if}
{$location[position].0}
{if $location[position].1 ne "" }</a>{/if}
{if not %position.last%}&nbsp;/&nbsp;{/if}
{/section}
{/strip}
</font>
{/if}
{else}
{if $location}
{strip}
{section name=position loop=$location}
{if $location[position].1 ne "" }<a href="{$location[position].1|amp}">{/if}
{$location[position].0}
{if $location[position].1 ne "" }</a>{/if}
{if not %position.last%}&nbsp;/&nbsp;{/if}
{/section}
{/strip}<hr />
{/if}
{/if}
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #5  
Old 02-04-2007, 05:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Lokking for home.php

Don't forget to replace <font with <span as <font> is a depreciated tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 02-04-2007, 05:51 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Lokking for home.php

Quote:
Originally Posted by balinor
Don't forget to replace <font with <span as <font> is a depreciated tag.

Very interesting... yes, you're right. FYI, the "<font" tag is right out of 4.1.6 stock install (/skin1_original/location.tpl)

So much for 4.1.x being xhtml compliant.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 02-04-2007, 04:31 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Lokking for home.php

Yes exactly which probally answers the question to my problems.

Interesting though what balinor has said, can i ask where he got this info from, as it is from 4.1.6 so it could have not been from there.

Not really a bug, but i bet there are plenty more where that can from ?
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #8  
Old 02-04-2007, 06:04 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Lokking for home.php

Where I got that from....the W3C Standards can be found here:

http://www.w3.org/
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 02-04-2007, 11:24 PM
  ezi designs's Avatar 
ezi designs ezi designs is offline
 

Senior Member
  
Join Date: Sep 2006
Location: United Kingdom
Posts: 118
 

Default Re: Lokking for home.php

Hi balinor

Maybe someone should pass it down the line a little, as i am sure its not hard for x-cart to apply an upgrade to.


Thanks anyhow

Richard
__________________
x-cart 4.1.6

DSEFU PRO

http.www.demontemplates.com
Reply With Quote
  #10  
Old 02-05-2007, 02:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Lokking for home.php

It isn't just X-Cart who isn't following this standard, look at 99% of the third-party add-ons and you will find lousy code as well. Most developers simply don't care to follow these standards.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:24 AM.

   

 
X-Cart forums © 2001-2020