X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   question about modifying tpl file during CDSEO installation (https://forum.x-cart.com/showthread.php?t=31239)

snowboard 05-17-2007 07:16 PM

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.

carpeperdiem 05-17-2007 09:59 PM

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?

snowboard 05-17-2007 10:11 PM

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

carpeperdiem 05-17-2007 10:15 PM

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. :-)

balinor 05-18-2007 03:09 AM

Re: question about modifying tpl file during CDSEO installation
 
Moving to Third Party Add-Ons

carpeperdiem 05-18-2007 03:16 AM

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.

balinor 05-18-2007 03:24 AM

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.

carpeperdiem 05-18-2007 03:35 AM

Re: question about modifying tpl file during CDSEO installation
 
moved back to template editing. :-)


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.