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

question about modifying tpl file during CDSEO installation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-17-2007, 07:16 PM
 
snowboard snowboard is offline
 

Senior Member
  
Join Date: May 2007
Posts: 111
 

Default question about modifying tpl file during CDSEO installation

Hi everyome,

During the installation of the CDSEO Links add on, I need to modify 2 tpl files.

When I open it up in notepad, there are spaces or tabs and sometimes a space that I can't figure out what it is.

So if I need to insert extra code, does it matter about the spaces or tabs between what I insert and what's before and after??

Thanks.

P.S. I didn't use Dreamweaver as I wasn't sure if it would add or change code.
__________________
version 4.1.7
Reply With Quote
  #2  
Old 05-17-2007, 09:59 PM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

Although notepad is a text editor, it is not the ideal text editor for code. You should use a text editor that will HELp you analyze and write code... color coding, etc...

Spaces can typically be ignored in .tpl files, however spaces within a section of code that will be visible or print to scren will look like spaces.

What code are you specifically speaking of?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 05-17-2007, 10:11 PM
 
snowboard snowboard is offline
 

Senior Member
  
Join Date: May 2007
Posts: 111
 

Default Re: question about modifying tpl file during CDSEO installation

Hi Carpediem,

Its during the installation of the CDSEO Links add on.

In 6-7 tpl files, eg location.tpl, category_modify.tpl, you need to replace existing blocks of code with new ones described during the installation process.

I added the code into the existing templates assuming the spaces before the code were not important (and I don't think they were elements that are directly visible printed)

I tried it, and so far it seems to be working.

Thanks
__________________
version 4.1.7
Reply With Quote
  #4  
Old 05-17-2007, 10:15 PM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

Quote:
Originally Posted by snowboard
I tried it, and so far it seems to be working.

There you go.

PS - it's carpe per diem. sieze the per diem.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 05-18-2007, 03:09 AM
 
balinor balinor is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

Moving to Third Party Add-Ons
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 05-18-2007, 03:16 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

Padraic, this was really about template editing in general -- and white space... not cdseo specific, so I left it in template editing.

I would say snowboard's question was not unusual for a newbie to template editing... I may write up an addition to a FAQ about white space when I get a moment. Leave it here if you want -- probelm has been solved - but the question would be valid in any mod or template editing. Just my opinion.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 05-18-2007, 03:24 AM
 
balinor balinor is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

Sorry, saw CDSEO and just moved it...didn't even notice you had replied Move it wherever you like.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 05-18-2007, 03:35 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: question about modifying tpl file during CDSEO installation

moved back to template editing.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
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 04:47 AM.

   

 
X-Cart forums © 2001-2020