?
Solved

DreamweaverMX changing links AARRGG!

Posted on 2003-03-27
7
Medium Priority
?
215 Views
Last Modified: 2010-04-25
I have built several templates that have several instances of these

<a href="?PageName=PAGENAME>

in them. They work, thats the correct link...It calls an exe that decifers that into a usuable link...thats not the problem.  The problem is, when I create a new page from a template, and save it, it changes that link to

<a href="">

I'm about to kill a sheep in order to appease whoever I pissed off.  Why does it do this?  Help! I dont want to change every link by hand after I save them! I just want dreamweaver to NOT F'ING MESS WITH MY LINKS!

I tried changing the "Format code" prefence not to change code for .html files, but that didnt do anything. It doesnt seem to matter where I save the file, it always changes those links.
0
Comment
Question by:Quik
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 8222387
it's got to be the ? doing that..don't know how you can change the source files in DW..
but you could fix each page as you create it..or a whole bunch of new pages at once.. using find and replace.

Ctrl+F

just specify all instances of..<a href="">
and replace with..<a href="?PageName=PAGENAME>



an extra chore but would save on sheep..

Z

0
 
LVL 2

Expert Comment

by:InnerChild
ID: 8225971
hmmm would you post the code the Dreamweaver is spitting out cause I can't seem to reproduce it...

LAter
0
 

Author Comment

by:Quik
ID: 8226451
Zeffer:I really dont want to find and replace, there are many links like that, and doing it that way for every page would take a VERY long time.

Here is an example line from one of my templates in a non-editable region:

<td align="right" valign="middle" class="head"> &nbsp;//<a href="?PageName=Home" title="back to the homepage">Home</a>&nbsp;/
            <a href="?PageName=contact">Contact Us / </a>

Now when I say New... and go from a template, the code it spits out is correct looking. I put in the data I want to be in the new page, then save it.  After it saves it, it changes that exact line to:

 <td align="right" valign="middle" class="head"> &nbsp;//<a href="" title="back to the homepage">Home</a>&nbsp;/
            <a href="">Contact Us / </a>

Anyone?
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 
LVL 23

Expert Comment

by:Zeffer
ID: 8227230
you can apply find and replace to the entire site Quik..
so no time at all..try it.

also try this..go into preferences..
edit>preferences>code rewriting..and check..Warn when fixing or removing tags..
see if you can make DW put up a message so you can decline
changes

Z
0
 

Author Comment

by:Quik
ID: 8227304
I tried that Warn when fixing tags...It doesnt list those tags as being invalid, so it never tells me its going to change them.

I think the best thing might just be have the links as <a href="XXX?PageName=Home" and then go in and find/replace the XXX with nothing.  Lame.

Anyone else have any better ideas?  Or actually know of a way to stop DW from changing my code?
0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9907930
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

PAQ with points refunded

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

zenlion420
EE Page Editor
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 9952876
PAQed, with points refunded (150)

GhostMod
Community Support Moderator
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question