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

Modifying Head.tpl Question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2003, 06:41 PM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default Modifying Head.tpl Question

Hello Group

I am close to getting this. I have played with the head.tpl for a while and come close to do what I want.

1. I did great getting rid of the language box

2. I replaced my logo.gif

3. Here is the problem. Logo2.gif butts up to the search box. I can't seem to figure out how that gets in the way of logo2.gif moving all the way to the left.

I would like to keep logo2.gif to the left and add some buttons on there. I also need to keep the search box.

I am modifying the default and trying to figure out what I can do.

Am I correct that the default deals with skin1.css?

For upgrade purposes I am going to use all the same names for my image changes. Do you think that would make a upgrade easier?
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #2  
Old 11-03-2003, 10:19 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default

I just normally throw away the original head.tpl and put in new html/smarty to do the exact layout that i want.

If you want to do the html in dreamweaver and then cut and paste this will work much better than trying to fight your way through the standard head.tpl and only really end up with a fairly standard xcart.
__________________
ex x-cart guru
Reply With Quote
  #3  
Old 11-04-2003, 02:16 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

Hello

Thanks, I will put it in DW and see If I can figure this out. I was doing fine till I got to the seach box. I could not figure out how to put it some place else.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #4  
Old 11-04-2003, 06:35 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

to make a search menu to go with categories, help etc

create menu_search.tpl

Code:
{* $Id: menu_search.tpl,v 1.16 2003/02/25 08:58:45 olga Exp $ *} {capture name=menu} <TABLE align=center class=VertMenuItems border=0 cellPadding=5 cellSpacing=0 width="100%"> <form method="get" action="../customer/search.php" name=productsearchform> <tr> <td valign="middle"><input type="text" name="substring" size="19" value="{$smarty.get.substring|escape}"></td> </tr> <tr> <td valign="middle" width=250><a href="javascript:document.productsearchform.submit()"> {include file="buttons/search.tpl"}</a> </td> </tr> <tr> <td>{$lng.lbl_advanced_search}</td> </tr></form> </TABLE> {/capture} { include file="menu.tpl" dingbats="dingbats_help.gif" menu_title=$lng.lbl_search menu_content=$smarty.capture.menu }

then in home.tpl add

Code:
{ include file="menu_search.tpl" }

where you want the search box to appear
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 11-04-2003, 07:08 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

Hello Shan

Thanks for the reply. I am ging to backup my files and give it at try.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #6  
Old 11-05-2003, 09:23 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

I find it easier just to edit every page in dreamweaver and set it for ftp upload on save.

Then you can edit each tpl through code and design, and edit each php file through code.

Makes life simple.
Reply With Quote
  #7  
Old 04-09-2004, 10:59 AM
 
skyking skyking is offline
 

Member
  
Join Date: Mar 2004
Posts: 13
 

Default

Quote:
Originally Posted by Gibberish
I find it easier just to edit every page in dreamweaver and set it for ftp upload on save.

Then you can edit each tpl through code and design, and edit each php file through code.

Makes life simple.
Thanks, I will try that....
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 05:46 AM.

   

 
X-Cart forums © 2001-2020