Start learning with our library of video tutorials taught by experts. Get started

Dreamweaver CS3 Beyond the Basics
Watching:

Using Find and Replace


From:

Dreamweaver CS3 Beyond the Basics

with James Williamson

Video: Using Find and Replace

One of the most underused features in Dreamweaver is the Find and Replace feature. Although it can certainly look for and replace specific text, it is in reality much more powerful than that. So in this video we will take a look at the Find and Replace feature and some of the options that surround our different searches and replacing criteria. We are going to work from the index.htm file. So if you are following along in the exercises with me, you want to open index.htm from the Chapter 1 Start folder. Before we get into our Find and Replace, I just want to point something out here on the page. If we look at our sidebar-- I will scroll over to see the sidebar and I will scroll down just a little bit. You will notice that we have a couple of icons that aren't showing up. The reason for that-- if I click inside one of those headings here, I can see that there is -- if I look down at my Tag Selector down here in the lower left hand corner, we can see that the class crawl has been applied to the Heading 2 tag. Well, the class should actually be music and not crawl. We could certainly go back and edit our tag so that it was music instead or even rewrite the Selector, but maybe we were using that Selector all throughout our site. Even without opening up the other pages, we know that every single page in this particular folder has crawl on it instead of music.
Expand all | Collapse all
  1. 2m 3s
    1. Welcome
      1m 17s
    2. Using the exercise files
      46s
  2. 1h 23m
    1. Reviewing the Coding toolbar
      8m 42s
    2. Customizing the Coding toolbar
      9m 52s
    3. Taking advantage of Code Hinting
      7m 20s
    4. Using snippets and shortcuts
      11m 10s
    5. Using the Quick Tag Editor
      5m 18s
    6. Using Find and Replace
      9m 50s
    7. Regular expressions
      5m 39s
    8. Using Bridge with Dreamweaver CS3
      8m 28s
    9. Round-trip editing with Photoshop CS3
      3m 40s
    10. Leveraging image variables in Photoshop CS3
      7m 32s
    11. Integrating external variables into your workflow
      6m 16s
  3. 37m 26s
    1. Understanding the CSS Styles panel
      7m 59s
    2. Understanding the Cascade
      5m 50s
    3. Understanding Inheritance
      5m 8s
    4. Understanding Specificity
      7m 5s
    5. Managing CSS styles
      5m 4s
    6. Using Design-Time style sheets
      6m 20s
  4. 2h 19m
    1. Using the new CSS template pages
      5m 59s
    2. Understanding DIV tag structure and layout
      12m 0s
    3. Understanding the CSS box model
      10m 0s
    4. Using absolute and relative positioning
      8m 35s
    5. Understanding floating elements
      7m 9s
    6. Clearing floats
      7m 19s
    7. Using floats to control page layout
      3m 45s
    8. Building structure and assigning IDs
      10m 19s
    9. Applying basic styling to structured content
      11m 14s
    10. Positioning container elements
      11m 4s
    11. Enhancing layouts with background graphics
      11m 48s
    12. Creating faux columns with background graphics
      8m 55s
    13. Creating rounded corners with background graphics
      9m 17s
    14. Building navigation with CSS
      16m 57s
    15. Using Dreamweaver's Browser Check feature
      5m 31s
  5. 53m 22s
    1. Creating properly structured forms
      6m 30s
    2. Creating accessible forms
      6m 41s
    3. Using CSS to lay out form structure
      7m 40s
    4. Creating vertical columns for form elements
      7m 48s
    5. Adding user feedback
      5m 52s
    6. Applying advanced styling to forms
      8m 11s
    7. Client-side form validation
      4m 17s
    8. Validating forms with the Spry Validation tools
      6m 23s
  6. 1h 20m
    1. Understanding the Spry framework
      3m 43s
    2. Defining a data source for use in Spry
      3m 56s
    3. Creating a Spry table
      8m 8s
    4. Using the Spry widgets
      8m 11s
    5. Connecting various data sets
      4m 50s
    6. Understanding Spry widget structures
      7m 1s
    7. Applying custom styles to Spry widgets
      6m 24s
    8. Applying additional custom styles to Spry widgets
      8m 46s
    9. Controlling Spry widget behaviors with JavaScript
      6m 0s
    10. Controlling Spry widget animations with JavaScript
      9m 31s
    11. Creating effects with Spry behaviors
      4m 42s
    12. Hand-coding Spry
      9m 11s
  7. 1h 11m
    1. Creating a base template
      8m 6s
    2. Creating editable attributes
      6m 26s
    3. Creating a new page from a template
      7m 42s
    4. Applying a template to an existing page
      4m 36s
    5. Creating nested templates
      5m 24s
    6. Using repeating regions
      6m 34s
    7. Creating editable and non-editable optional regions
      6m 0s
    8. Using template parameters
      7m 26s
    9. Using template expressions
      9m 59s
    10. Using conditional template expressions
      8m 54s
  8. 54m 40s
    1. Examining XML structure
      2m 44s
    2. Creating an XML document
      9m 9s
    3. Using the CDATA structure
      5m 7s
    4. Creating an XSLT file
      4m 33s
    5. Binding data from an XML to an XSLT document
      5m 6s
    6. Inserting repeating regions into an XSL document
      5m 16s
    7. Creating a client-side XSL transformation
      2m 52s
    8. Styling a remote RSS feed
      7m 29s
    9. Creating a server-side XSL transformation
      5m 31s
    10. Writing XSL expressions
      6m 53s
  9. 1h 2m
    1. Overview of building dynamic websites
      1m 35s
    2. Installing PHP, MySQL, and Apache on Mac
      3m 22s
    3. Installing PHP, MySQL, and Apache on Windows
      3m 54s
    4. Creating a MySQL database
      3m 16s
    5. Defining a testing server and database bindings
      6m 14s
    6. Creating a database recordset
      4m 35s
    7. Adding dynamic content to the page
      5m 14s
    8. Creating repeating regions of dynamic content
      7m 6s
    9. Filtering database records
      7m 39s
    10. Using the Live Preview
      10m 22s
    11. Passing URL parameters
      4m 23s
    12. Dynamically generating links
      5m 18s
  10. 57m 9s
    1. Understanding behaviors
      5m 16s
    2. Installing additional behaviors
      3m 39s
    3. Planning to create a custom behavior
      3m 42s
    4. Examining existing behaviors
      5m 32s
    5. Building a behavior function
      7m 23s
    6. Creating an Action file
      6m 48s
    7. Enabling behavior functions
      9m 1s
    8. Initializing the user interface for a behavior
      3m 9s
    9. Loading behaviors in Dreamweaver
      6m 47s
    10. Testing and debugging behaviors
      5m 52s
  11. 27m 12s
    1. Running reports
      7m 41s
    2. Checking and validating links
      3m 40s
    3. Using cloaking
      5m 42s
    4. Using Check In/Check Out
      4m 3s
    5. Using Design Notes
      6m 6s
  12. 20s
    1. Goodbye
      20s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Dreamweaver CS3 Beyond the Basics
11h 10m Intermediate Sep 21, 2007

Viewers: in countries Watching now:

Covering diverse topics such as improving workflow and managing CSS styles, Dreamweaver CS3 Beyond the Basics is a hands-on course that teaches users how to move beyond standard, static websites. Instructor James Williamson explores how to increase productivity, interactivity, and accessibility with Dreamweaver. He also discusses how to extend the application's capabilities with XML and XSL. Exercise files accompany the tutorials.

Topics include:
  • Reviewing and customizing the coding toolbar
  • Understanding the CSS Styles panel
  • Using absolute and relative positioning
  • Creating accessible forms
  • Building AJAX pages with the Spry framework
  • Extending templates
  • Working with XML and XSL
  • Building dynamic content
  • Creating custom behaviors in Dreamweaver
  • Running reports
Subject:
Web
Software:
Dreamweaver
Author:
James Williamson

Using Find and Replace

One of the most underused features in Dreamweaver is the Find and Replace feature. Although it can certainly look for and replace specific text, it is in reality much more powerful than that. So in this video we will take a look at the Find and Replace feature and some of the options that surround our different searches and replacing criteria. We are going to work from the index.htm file. So if you are following along in the exercises with me, you want to open index.htm from the Chapter 1 Start folder. Before we get into our Find and Replace, I just want to point something out here on the page. If we look at our sidebar-- I will scroll over to see the sidebar and I will scroll down just a little bit. You will notice that we have a couple of icons that aren't showing up. The reason for that-- if I click inside one of those headings here, I can see that there is -- if I look down at my Tag Selector down here in the lower left hand corner, we can see that the class crawl has been applied to the Heading 2 tag. Well, the class should actually be music and not crawl. We could certainly go back and edit our tag so that it was music instead or even rewrite the Selector, but maybe we were using that Selector all throughout our site. Even without opening up the other pages, we know that every single page in this particular folder has crawl on it instead of music.

So we need to make a very global change, and we are going to use Find and Replace to help us do that. So we find and replace by going to up to our menu and going to Edit and choosing Find and Replace, and of course you can see the shortcut key for that. That would be Command+F or Ctrl+F. The Find and Replace dialog box comes up. I am just going to move this up a little bit so that it's centered a little bit better. Now, we can find text in our current document. If I grab the pulldown menu here, notice that we can search in a lot of different places. We can look in just Selected Text, the Current Document, any Open Documents, we can point to a specific Folder, Selected Files in Site, or even Entire Current Local Site, so that would do a site-wide Find and Replace for you. Now, there are different types of searches available to us. Most people just kind of focus on text, finding one word and replacing it with another. My last name, for example, is Williamson, but for some reason people have trouble with the 'on' and they always just type in Williams. So I have to do find and replaces, where I am replacing Williams with Williamson. This would be what you would use for that. You would use text and it would search just text in it, really wouldn't look inside any of the tags or any of the code. Well, if I grab my pulldown menu, notice that I can get a Source Code, which allows me to actually enter in XHTML code or any type of code that I want, and it would look for that specific code and replace it with another one. We have an Advanced Text feature, and this one is kind of neat, because we can look for specific text. So given my example, Williamson for example, I could type in, Find Williams. Somebody misspelled it inside of a tag, and notice that I can look inside of a tag or not inside of a tag. But if I look at inside of a tag, I can actually specify which tag. Maybe I want to look and find Williams every time it's in h1 tag, and then I could replace that with Williamson. I can actually add these different attributes and things to my tag. So I could actually say, look inside of a tag h1 that has an attribute, and I could say class =, and I can even do like author or however my site was identifying myself, and I can do that. I can just keep adding these. So you can get more and more specific with an Advanced Text search, which is really nice. Now, the last type and the one we are going to use is Specific Tag. Now, I really like Specific Tag because it allows me to edit my site in a very fast and efficient manner, without having to do a lot of manual typing. So in this case, you can search for a Specific Tag, or beside that I can actually type in the tag, or if I grab the pulldown menu, notice that I have my full Tag Library menu here, so I could go down and search for certain tag, like a heading 1 or a div tag. Also, this nice little wildcard right here that says any tag. So I know that in the pages that we are looking at, that the crawl class should have been changed to the music class, no matter where you find it. It might be in a heading 2 in one section, it might be in a paragraph tag in another one. Again, we have a lot of different modifications that we can make to this. We can do With Attribute, Without Attribute, Containing or Not Containing. So you see you can get really, really specific with this. So I am going to say With Attribute, and I will choose class = crawl, and that matches the criteria of what we are looking for. We are looking for any tag throughout our document that has the class crawl applied to it. Now, after you find it and it says, what action do you want to take, we can do lot of different actions. We can replace the Tag and its Contents. We can Strip out and Replace just the Contents of the tag. So you can see from this list, there's a lot of different things here. What we are going to do is we are going to actually set that Attribute. So we are going to change the class attribute from crawl to another attribute. So I am going to choose Set Attribute, and once again, I want to set the class attribute and this time I am going to change it to music rather than crawl. Now, I am doing this in the current document even though I need to do it throughout my entire site. The reason I am doing that is because I want to make sure that what I am doing works properly prior to actually going in and doing this site-wide. So instead of hitting Replace or Replace All, I am going to hit the Find Next icon here in the upper right hand corner. It's actually going to scroll and find this and you may actually-- the Find and Replace menu is actually kind of in the way. So if I move this, I can see right there that its highlighted in that particular heading. Once I have found it, if I hit Replace, I can see probably quickly and easily whether it worked or not, and again, it sort of jumped up to my next one, so I have to look down there toward the bottom. I see the 8.03 now actually does have that change made to it. So if I hit Replace All, it's going to go ahead and replace all of those. I actually get a Results panel that comes up and it lets me know exactly how many of these were replaced on the page. So once you commit to a search, you are going to get a report from Dreamweaver about that. I am just going to go ahead and close that results. Now, if I scroll down to my Sidebar, you can see that now all the Sidebar items have an icon on it. So the search actually worked exactly the way I wanted it to. Of course, I wanted to do this for my whole site, and that was just doing it for that page. So let's go take a look at something else we can do with the Find and Replace. I am going to go back up to Edit and choose Find and Replace. Now, I will go back to a specific tag. Now, it happens to remember the last search that you did, which is wonderful, because it goes ahead and repopulates this, so I didn't have to type this again. But what if I was doing this a day later or a week later? Well, I would probably have to type all this again. So one of the things that I can do is I can save any query that I have got. So right over here in the upper right hand corner is the Save Query icon. I am going to go ahead and click that. I can type this in and I can save this as crawlToMusic.

Just again a descriptive name of the search and what it's going to do. It's going to swap out all crawlsToMusic. Now, you can save this query anywhere that you want. So I probably want to save this in a very specific location, and you might want to keep all your queries in the same place. So I am going to go ahead and expand this out, and once again, I am going to go to James, and I will go my Documents. If you remember, earlier we made a folder in an earlier movie called Dreamweaver Backups. So I am going to create another new folder in my Documents, and I am just going to call this queries, and I will just save it directly inside that. So now the next time I come in here, if I need to, I can go to Load Query, Browse out and find that and load that up. So pretty easy to do actually. So we go into my Documents, queries. If you preview it like this, you can see its just XML. So at a certain point you could make your own if you wanted to just by hand-coding them, if you understood the structure of them. So it's loaded that, and this time I am going to change my Find in from Current Document, and I am just going to grab the pulldown menu here, and I am going to choose Selected Files in Site. Instead of trying to do everything all at once, what I will do is I will just come over here to my Files panel and I will just highlight the pages that I need it to go in and do that search for. So you will notice I am ignoring the index page, and I am sort of getting all the other HTML pages inside there. Since I know that the query works, I am just going to hit Replace All, and Dreamweaver gives me a message that says, these files aren't currently open, and so you can't undo the search, or you sure you want do this? So that's definitely something you want to be absolutely certain of before you click OK on. I am going to go ahead and click Yes, and it's going to perform that change for me. So I will close the Results panel. So now let's go and see how our Find and Replace did for us. So I am going to open up, let's say, shows.htm down here, and again, if I look at my Sidebar-- There we go. My Sidebar now has all of my music icons on there, just the way I wanted them. So it went ahead and performed that change for me. Now imagine how much time we just saved rather than having to go into each file individually and change those classes out by hand. So Find and Replace can really automate a lot of the processes and maintenance that you have to do on a day-to-day basis. Now that we have examined some of the basic features of Find and Replace, our next movie will focus on making our queries more powerful by adding regular expressions to the mix.

Find answers to the most frequently asked questions about Dreamweaver CS3 Beyond the Basics.


Expand all | Collapse all
Please wait...
Q: In the Chapter 3 movie “Creating rounded corners with background graphics”, the instructor uses a .last class selector. What are the CSS properties of this selector?
A: The .last selector is as follows:
#current p.last{
background: url(../_images/current_btm_bg.gif) no-repeat bottom
left;
padding-bottom: 2em;
margin: 0;
}
The background is the bottom rounded corner graphic, the bottom padding keeps the type away from the bottom of the box and thus the rounded corners, and the margin ensures that the box elements fit seamlessly with each other.
Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Dreamweaver CS3 Beyond the Basics.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked