Jump to content

Archived

This topic is now archived and is closed to further replies.

President Obama

Change Variable name and all instances

Recommended Posts

Say I've made a variable called $Hi and I've used it in 4 different documents because it ends up in a session and/or cookie but now I want to change that variable name to $bye and all the instances of it in the 4 documents. Is that possible in dreamweaver?

Share this post


Link to post
Share on other sites

Never used DW, but there should be a 'Find and Replace' function in one of the menus, I'd imagine.

Share this post


Link to post
Share on other sites

Yes, close all documents and hit CTRL-F (or command-f), you'll get the find window.

 

Starting at the top:

Find In- set this to the folder with all your stuff -  your local root folder (now called local site folder)

Set Search for - source code

Then just type in what you want to replace in the find box and what you want to replace it with in the replace box.

 

You may or may not want to check Match case.

 

[attachment deleted by admin]

Share this post


Link to post
Share on other sites

Dam I thought DW might of had a specific function to find the variable because I could of used that variable name in my body. Oh Well.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.