Gossamer Forum
Home : Products : Links 2.0 : Customization :

Another Quick One... Templates/Return

Quote Reply
Another Quick One... Templates/Return
I looked through the posts and couldn't find anybody mentionning this problem. Here it is:

Whenever I go to edit my templates, when I press 'edit', the templates are printed in the text area with a blank line between every line of code.

This gets pretty annoying. Rather than getting this:

----------------
<html>
<head>
<SCRIPT LANGUAGE="javascript">
function LinkUp()
{
var number = document.see.oh.selectedIndex;
location.href = document.see.oh.options[number].value;
}
</SCRIPT>

<style type="text/css">
.sexyblue
{
font-family: arial;
font-weight: bold;
font-size: 10px;
color: #21285A;
background: #6699CC;
}
</style>
-----------------------


I get this:


----------------------
<html>

<head>

<SCRIPT LANGUAGE="javascript">

function LinkUp()

{

var number = document.see.oh.selectedIndex;

location.href = document.see.oh.options[number].value;

}

</SCRIPT>



<style type="text/css">

.sexyblue

{

font-family: arial;

font-weight: bold;

font-size: 10px;

color: #21285A;

background: #6699CC;

}

</style>
----------------------

And sometimes, it even does it again, and again, until I can't see the next line of code....

If anyone has experienced anything similar, I would appreciate some input...

Thanxx,
M.


Quote Reply
Re: Another Quick One... Templates/Return In reply to
The Template editor does not handle special HTML characters along with javascript codes very well.

Two Suggestions:

1) Create .js files rather than embedding the javascript codes in your template files. I would recommend researching .js files on the web, but basically, you take the main portion of the javascript codes minus the <SCRIPT> anchors. Then you would reference the .js file as follows:

Code:

<SCRIPT LANGUAGE="JavaScript1.2" SRC="/relative/path/to/file.js"></SCRIPT>


2) Install the Special HTML Character Mod located in the Resource Center.

Regards,

Eliot Lee

Quote Reply
Re: Another Quick One... Templates/Return In reply to
Thanks again Eliot...

Quote Reply
Re: Another Quick One... Templates/Return In reply to
You're welcome.

Regards,

Eliot Lee

Quote Reply
Re: Another Quick One... Templates/Return In reply to
Why don't you just edit the templates in your Web Editor? Like DreamWeaver or Frontpage? Then just upload them to the template folder...I started doing this, and the time it saves in enormous.

*AuTo|V|aT|C*
Quote Reply
Re: Another Quick One... Templates/Return In reply to
You could do that as well. However, keep in mind that earlier versions of both WYSIWYG editors screws up tags and if you want to use WYSIWYG editors, it is best to download the Enhanced Template.pm codes posted in the Resource Center.

Regards,

Eliot Lee

Quote Reply
Re: Another Quick One... Templates/Return In reply to
Thanks for all of those porpositions. I have actually been editing everything in notepad, and FTPing it afterwards. I found the mod though, so I might try that...

Thanxx,
M.

Quote Reply
Re: Another Quick One... Templates/Return In reply to
In Reply To:
Like DreamWeaver or Frontpage? Then just upload them to the template folder...I started doing this, and the time it saves in enormous.
Which one are you using?



Quote Reply
Re: Another Quick One... Templates/Return In reply to
If memory serves me correct, I believe Automatic was using Dreamweaver.

Don't quote me though.

Regards,

Eliot Lee