New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Managing files and folders

From: Dreamweaver CS6 Essential Training

Video: Managing files and folders

If you're like me, when you work on a site you're constantly creating new files and folders, renaming files, moving files around within your directory structure, all sorts of mayhem. Let's face it. No matter how well you plan your site, chances are you're going to modify the directory structure at one time or another. Now to make those kinds of changes to your site I strongly recommend using the Files panel, that you will find right over here. Instead of going out say to Windows Explorer or the Finder Panel in the Mac, the reason for that is the Files panel can be used for a lot of different things.

Managing files and folders

If you're like me, when you work on a site you're constantly creating new files and folders, renaming files, moving files around within your directory structure, all sorts of mayhem. Let's face it. No matter how well you plan your site, chances are you're going to modify the directory structure at one time or another. Now to make those kinds of changes to your site I strongly recommend using the Files panel, that you will find right over here. Instead of going out say to Windows Explorer or the Finder Panel in the Mac, the reason for that is the Files panel can be used for a lot of different things.

For example, you can create new files and folders with it, you can rename existing files, move files and folders, copy and paste files, everything that you can do in Windows Explorer or the Mac Finder. But the reason is not just because it's the most efficient way to make those changes rather than having to go back outside of the program, but there is a bigger reason, it's the safest way to make those changes. Now websites by their very nature, rely on understanding where other files are. When you place an image on the page or you link to another file, Dreamweaver places code on your page that tells the browser where it can find that particular file or resource to either resolve the link or display the image.

If you move a file and the link to it doesn't update along with it, those links are no longer going to work, or in the case of an image the image just doesn't display anymore. Now that's especially problematic for larger sites where dozens of pages might link to a single page. Making all those changes manually or making the changes outside of Dreamweaver would take a considerable amount of time. But if you remember to use the Files panel to make those changes, Dreamweaver will automatically update all the links on the page as well as any pages in your site that linked to it, and it saves you a tremendous amount of time.

So let's take a closer look at using the Files panel to manage files and folders in our site. Now I don't have it pointing to the right directory right now because I wanted to show you, for those of you that skipped the Exercise Files movie, how basically the process of redefining a site or pointing it to a new root directory works, and we are going to do this for every exercise within our title. So I am just going to right up here to the Files panel. In this pull-down menu I am going to double-click the name of our site. That's a very quick and easy way to bring the Site Setup dialog box back up. It's sort of one of those hidden features.

You can certainly go to Site, Manage Sites, click this site and then edit it, but this is just so much faster. Okay, so here's the site we defined in our last movie and it still pointing to the same folder. If I don't change the name but click the Browse icon, I can simply redirect it to a new folder, and in this case, I want to redirect it to, in the Chapter_02 directory, 02_04. So again, I am going to open that folder up, hit Select, Save it and it will re-cache it up and I'll see a new set of files show up over here in the Files panel.

So make sure that you are pointing to the 02_04 folder. So the first thing I want to show off about the Files panel in terms of the site management capabilities is the creation of new files and folders, and it's something that you are going to be doing a good bit. There are a lot of different ways to do it. You can come over and create new here, you can do it from the menu where you go to File>New, but you are also free to do it right here in the Files panel. If I go up to the root directory and I right-click it, notice that one of the options that I get is New File. If I go up and do that it creates a brand new untitled.html file in my directory structure.

And whatever folder you right-clicked that's the directory it's going to place that in. So I am just going to go ahead and give this a name. And so if you clicked off of it, just click back once and then one more time to highlight the text here, I am just going to title it test.html. Now notice it got the .html extension and that's because the preferences that I have set. Once I change my preferences later on, and I will show you how to do that in a movie in just a little bit, you will be able to get exactly the extension that you are looking for. Okay, so what's in this document? Well, if I open it up, nothing, absolutely nothing. It's just a blank empty untitled document. That's extremely helpful in terms of, if you build out wireframes and you don't have any files you need in each directory, you can just go ahead and start creating new files and naming them what they are supposed to be named in the directories and then open those files up and start working on them.

Now you can also delete files. So if I select this file and right-click it, I can go up to Edit and choose Delete. It's going to get rid of that file. It's going to ask me, because when you delete it, it really does delete it right from your hard drive and off it goes, don't need that anymore. Okay, now another thing that we can do is rename files, and one of the things I want to do here just so you can see this a little bit better, I am going to extend the width of my Files Panel out by grabbing that sort of side handle and extending it out, and then these columns here, I'm free to rearrange the size of those as well.

So I want to take the name and extend that so that you guys can see what it is that I am working on here. Okay, so student-spotlight, it's accurate, that is what is in that page. It's the current student-spotlight. However, remember what I said earlier about our file naming? That's really long. So I want to rename that to just spotlight. Well, it's very easy to do, all I have to do is click once to highlight the file and then click one more time. You don't want to click too fast or you will end up double-clicking it, and then that's going to highlight the name of that. And now I can just remove the student- and just save it as spotlight.

As soon as I'm done I can hit Return. That's going to change that. Now here is where the power of managing files and folders inside Dreamweaver starts to show up. As soon as I make a change to an existing file, especially one that has links to it or out from it, Dreamweaver is going to ask me, hey! Wait a second. The Index page was linked to this, do you want me to go ahead and update that link. Remember, that you link to the page before would have been student-spotlight, but now it's just spotlight. So I can say, yeah, yeah, sure go ahead and Update that, and Dreamweaver just saved me a tremendous amount of work.

I didn't have to open up the Index page and change all the links on the page that might linked to the student-spotlight, I just did it in one fell swoop. That's kind of simple because it's only one page, but imagine that you have a site with, oh, I don't know, 50 pages that linked to it. Imagine how much work you just saved yourself. I need to do a little bit of reorganization. For example, graphic-design and programs need to be in a subdirectory called Programs, and right now they are within the root directory. So I can use the Files panel to do that for me as well. I am going to come right up to the root folder, I am going to right-click that and tell it this time to create a New Folder.

So that's going to create a new directory within my site and I can just go ahead and call that one, programs. So I have a subdirectory that I need for that, now I need to move the files. Once again, it's really, really simple, I simply select the files that I need, in this case, graphic-design, and now I am going to hold down either the Ctrl or the Command key so I can select non-contiguous files, and I am going to select programs as well. So, both of those need to go in a subdirectory. So I have got both of those highlighted, I am just going to click-and-drag down into the programs directory and when I release, once again, I get this nice little message from Dreamweaver saying, wait a second. You are moving those files.

So any links to those files and any links that are currently in those files pointing to other files in my site aren't going to be broken if you move this. How about, do you want to update those links? And by clicking Update, once again, I saved myself a bunch of work. Now if I had gone out to the Finder Panel or the Windows Explorer panel and move those files around certainly I could have created the directory structure, I could have move the files in there, but the updating to links would not have occurred. So the next time I come back in Dreamweaver, I would open it up, I test my site out, and none of links would work, and now I would have like an afternoon's worth of work ahead of me.

So that's the main reason that I recommend using the Files panel when you're managing your files and folder inside Dreamweaver. Of course, that's not all the Files panel can do. Later on in this title we will discuss using the Files panel to upload files and manage site synchronization. For now however, concentrate on making sure that you practice discipline when needing to make changes on your site. Make these updates from within Dreamweaver using the Files panel and you will be confident in making those changes correctly and without breaking site functionality.

Show transcript

This video is part of

Image for Dreamweaver CS6 Essential Training
Dreamweaver CS6 Essential Training

90 video lessons · 52919 viewers

James Williamson
Author

 
Expand all | Collapse all
  1. 1m 4s
    1. What is Dreamweaver?
      1m 4s
  2. 5m 44s
    1. Welcome
      1m 4s
    2. Using the exercise files
      2m 17s
    3. Learning web design
      2m 23s
  3. 1h 0m
    1. Looking at the Welcome screen
      5m 9s
    2. Exploring Windows and Mac interface differences
      5m 6s
    3. Arranging panels
      8m 44s
    4. Managing workspaces
      10m 14s
    5. Exploring the Application toolbar
      6m 21s
    6. Exploring the Document toolbar
      8m 47s
    7. Working with the Property inspector
      9m 30s
    8. Using the Insert panel
      6m 30s
  4. 53m 3s
    1. Understanding basic site structure
      3m 46s
    2. Exploring file naming conventions
      2m 10s
    3. Defining a new site
      5m 23s
    4. Managing files and folders
      7m 57s
    5. Adding remote servers
      7m 4s
    6. Uploading files
      12m 46s
    7. Previewing in browsers
      9m 11s
    8. Managing multiple sites
      4m 46s
  5. 36m 41s
    1. Creating new documents
      6m 49s
    2. Setting up new document preferences
      5m 30s
    3. Setting accessibility preferences
      6m 49s
    4. Working with starter pages
      4m 32s
    5. Managing starter pages
      13m 1s
  6. 37m 23s
    1. Getting text into Dreamweaver
      8m 43s
    2. Importing Word documents
      4m 6s
    3. Adding structure to text
      7m 35s
    4. Creating lists
      4m 35s
    5. Creating definition lists
      4m 0s
    6. Using the Quick Tag Editor
      8m 24s
  7. 44m 41s
    1. Exploring the Code toolbar
      5m 41s
    2. Setting code preferences
      7m 19s
    3. Using code hints
      8m 8s
    4. Wrapping tags
      5m 7s
    5. Adding comments
      6m 29s
    6. Using snippets
      7m 32s
    7. Formatting source code
      4m 25s
  8. 1h 19m
    1. Setting CSS preferences
      9m 32s
    2. An overview of the CSS Styles panel
      9m 23s
    3. Creating a new CSS rule
      6m 42s
    4. Using the CSS Rule Definition dialog
      7m 25s
    5. Organizing styles
      7m 22s
    6. Modifying style properties
      6m 17s
    7. Controlling CSS through the Property inspector
      6m 37s
    8. Attaching external style sheets
      5m 54s
    9. Using CSS visual aids
      7m 3s
    10. Using CSS Inspect
      6m 48s
    11. Using the Code Navigator
      6m 39s
  9. 1h 11m
    1. Managing assets in Dreamweaver
      7m 30s
    2. Setting external image editing preferences
      4m 26s
    3. Placing images on the page
      10m 12s
    4. Exploring Photoshop integration
      7m 17s
    5. Modifying Smart Objects
      9m 42s
    6. Modifying image properties
      8m 4s
    7. Styling images with CSS
      6m 45s
    8. Using background graphics
      7m 28s
    9. Positioning background graphics
      10m 10s
  10. 36m 23s
    1. Link basics
      3m 17s
    2. Setting site linking preferences
      2m 19s
    3. Creating links in Dreamweaver
      9m 17s
    4. Using absolute links
      3m 43s
    5. Using named anchors
      6m 41s
    6. Creating an email link
      5m 25s
    7. Creating CSS-based rollovers
      5m 41s
  11. 44m 30s
    1. Reviewing table structure
      5m 20s
    2. Importing tabular data
      6m 46s
    3. Creating accessible tables
      6m 11s
    4. Exploring basic table styling
      9m 42s
    5. Styling alternate rows
      8m 57s
    6. Creating custom table borders
      7m 34s
  12. 59m 15s
    1. Understanding how forms work
      2m 45s
    2. Reviewing form design
      3m 44s
    3. Creating accessible forms
      5m 16s
    4. Setting form properties
      2m 39s
    5. Using the fieldset and legend tags
      2m 52s
    6. Inserting text fields
      6m 56s
    7. Inserting list menu items
      7m 54s
    8. Inserting checkboxes
      4m 14s
    9. Inserting radio button groups
      3m 52s
    10. Inserting submit buttons
      2m 25s
    11. Exploring basic form styling
      8m 2s
    12. Exploring form element styling
      8m 36s
  13. 33m 25s
    1. Adding CSS3 transitions
      8m 29s
    2. Spry overview
      2m 44s
    3. Using Spry widgets
      3m 57s
    4. Adding Spry effects
      8m 1s
    5. Using the Widget Browser
      7m 4s
    6. Extending Dreamweaver
      3m 10s
  14. 1m 2s
    1. Additional resources
      1m 2s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

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
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.