Jump to content

template header.tpl code problems


web2010

Recommended Posts

I wish to alter the header.tpl links I have created however, when I do this the template is knocked out of place.

 

I am using Dreamweaver to do it. Is DW the problem and should I be using something else?

 

I am not changing any of the page layouts. :oops:

Link to comment
Share on other sites

If you're using it to align objects, it will insert div tags (configurable), but by itself it will not, at least in my experience. But again, mine may be different from yours in version and configuration. I'm using CS4, and have some specific setting changes from the default.

Link to comment
Share on other sites

Just as a suggestion I wouldn't use anything but a text editor to edit the tpl files. Many programs tend to want to *fix* the code when it actually breaks it.

Though usually a better way, even Notepad that's free with Windows has issues in my experience. It has a tendency to introduce Windows line breaks that can adversely affect some scripts. Properly configured, even WYSIWYG editors such as Dreamweaver can be used to edit these, as long as you're using code or split view and edit the raw code directly.

 

Nothing beats a good text editor, however, especially if it has syntax highlighting or even real time syntax checking (Komodo Edit has this).

Link to comment
Share on other sites

Though usually a better way, even Notepad that's free with Windows has issues in my experience. It has a tendency to introduce Windows line breaks that can adversely affect some scripts. Properly configured, even WYSIWYG editors such as Dreamweaver can be used to edit these, as long as you're using code or split view and edit the raw code directly.

 

Nothing beats a good text editor, however, especially if it has syntax highlighting or even real time syntax checking (Komodo Edit has this).

 

As a note for desktop linux users... Kate, oofice, Kwrite and Kedit are all capable of editing straight text. For remote editing use vi, joe, nano or pico.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated