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

Inserting list menu items

From: Dreamweaver CS6 Essential Training

Video: Inserting list menu items

The list menu item is actually one element that has two possible uses. When placing a list menu item on your page, by adding a single attribute you can choose to make it a list or a menu. A menu gives users a pulldown menu that allows only one choice. These are very good for presenting users with long lists where only one choice is allowed. The list option on the other hand allows you to create a list that displays multiple choices. This can be handy for a small list but can become a bit cumbersome when used with many choices.

Inserting list menu items

The list menu item is actually one element that has two possible uses. When placing a list menu item on your page, by adding a single attribute you can choose to make it a list or a menu. A menu gives users a pulldown menu that allows only one choice. These are very good for presenting users with long lists where only one choice is allowed. The list option on the other hand allows you to create a list that displays multiple choices. This can be handy for a small list but can become a bit cumbersome when used with many choices.

Again, we are going to be working with request.htm and this time I am opening it up from the 10_07 directory. And as I scroll down, I can see there's a little bit more done to our form now, so there's a few more elements that have been added to it, and those are all text elements which is what we covered in the last movie. So what I am going to do is I am going to take the text right here for the State Placeholder. It's pretty common when you're choosing which state you are from in a form to grab a pulldown menu and choose that, so that's what we are going to enter here. So I am going to go ahead and delete that default text.

Then I am going to go up to my Form Objects and I want to choose the Select element which is called a List/Menu item inside Dreamweaver. So I am going to go ahead and click that, and again, I get my Input Tag Accessibility Attributes. So it really doesn't matter what type of form element you are placing on a page, you're going to get these attributes. So what I am going to do here is state for ID, the Label is going to say State. I am going to attach it using the for attribute; that's going to be pretty much a standard way of doing this. The Position is going to be Before the form item and the Tab Index for this one is going to be 50.

So I will click OK and it's going to go ahead and place it on the page. When you first select this, I will go to Live View to show you this. When you first select this pulldown menu, well, you can't, and that's because it has nothing inside of it. So if I click on this, I notice that if I click on the Select menu item, when I go down to my Properties Inspector, you will notice that I have the option of making it a Menu or a List. I can also give it an Initially selected value from the values that it has, but I first need to add those. So I am going to go right over here to List Values and click on that.

That's going to open up a dialog box that allows me to enter in a Label, and that's what the user will actually see, and then a Value, and that's what is going to be submitted to the form if that particular item is selected. So for the first one, since this is a list of our states, I am going to do Alabama, and then the Value for that is AL. Now that value can be anything that the form processing needs. So this may be a primary key like a number or you could do like what we are doing here and do the abbreviation for it. It's really up to whoever is going to write the processing script for this. Okay, so that's state number one, there's only 49 more to go and you probably want to enter the territories in too.

So you go ahead and do that and I am going to step away for a little bit and get a drink. Nah, I am just kidding you. I am going to go ahead and cancel that because I already have those done for you. So I am trying to be nice about this. I am going to go over to my Files Panel and open up the _assets folder, and inside that, I have a little text file, that is states.txt. This is going to give us some insight into the structure of the select menu item. You will notice that we have an option tag and inside that option tag is a value, and that's the value that's returned if it's chosen.

And then we have just some text, and that is what you're actually going to see in the pulldown menu. So I am going to go ahead and select all of this and copy it, go back in my request, and of course, this is going to be a lot easier to do in Code View. So I am going to switch over to Code View, there is my select menu item, and all I have to do is create a little bit of space inside that between the opening and closing select tags, paste that in, and we are all done. So I am going to save that, go back into Design View, and now if I go to Live View, you will notice that now our list is populated with all the states including my beautiful home state of South Carolina. Wonderful! All right! I am going to turn the Live View off and I do feel like mentioning that when you have all those values like that, like this time 50 values, 60 values, 70 values, if it's a common thing like countries' codes or state codes, typically you can do a quick Google search and find that information online that you can then copy and paste in and make it a little bit easier.

Okay, I also want to show you the difference between this menu and a list item, so we are going to place a list item on the page as well. So what we are going to do is I am going to go down to the Program Placeholder which is right here, Areas of study, I am going to highlight of that and delete the text. And then I am going to go back and add one more List/Menu item to the page. Now for this one, the ID is going to be program and the Label for this is going to be Program and then (s), so for Program or Program(s) of Interest.

I am going to leave everything else as default and the Tab Index for this one is going to be 60. Okay, I am going to go ahead and click on that one. Now unfortunately, I don't have anything to help you out with this one; we are going to have to enter these values ourselves. So I am going to go ahead and click the select menu item, but I am going to change something here. Instead of the Type being Menu, I am going to change that to List. Now we will come back to that in just a moment. You will notice that we have the option of setting the Height property, but actually we are going to do that through CSS. And then we have the ability to allow multiple selections, and I want to do that; I want people to able to choose more than one answer.

So I am going to allow for multiples there, and then I am going to enter the List Values in. And we only have a few to enter in and I think you can see how quickly you can add these. The first one is going to be Animation, and since it's a Label, this is what people are going to see, so I am going to type in with a capital A, Animation. Now if I just hit Tab, it's going to move me right over to the Value and I am going to type in animation there as well. If I hit the Tab again, I get to add a new one. So I can just keep hitting Tab to go through all the Labels and Values. So the next one is going to be Fashion + Textile Design.

so these are the programs that the University offers. The Value for that is going to be fashion. So notice that it's a much shortened version of that obviously. Then we are going to have Fine Art + Visual Culture, and that is going to be fine. The next is going to be Graphic Design, my major in college, and we will do design there. And then we have Interior Design and that's going to be interior. Photography, the Value for that is going to be photo. And so if the form is submitted, what it will do is it will say something like Program= and then give you all the values that are returned.

And the next one is going to Product Design and that will be product. So see, I told you that wouldn't take too long. All right! I am going to go ahead and click OK and I am going to do a Save All. Now really quickly I want to look at this in Code View just so you can see the difference. You can see that right here for program, notice that it has this little attribute right here, multiple. If I go up to my other select item, that is the only difference between those guys. It's just the ability here to select multiple items on that.

Now the size is also going to show one at a time, but again, we can change that through the use of CSS, so we don't even really need to have that. For right now though, before we style this, let's just change this for a moment. I am going to change it to about 6 so we can see more than one at a time, but normally, I would get rid of that and style that with CSS. So I am going to go back to Design View, click on Live View, and you can see the difference. Here we have a pulldown menu where we can choose from, and here we have a list where if I hold down the Ctrl or Command key, I can select multiple items from.

So the hard part about creating List/Menu items is knowing what to use for labels and data to be quite honest with you; you might have been wondering that as I was filling this out. Well, how did you know what data to use? Well, unless you are also creating the processing page, you will need to know what the exact names of each of the data fields will be. Now this isn't any different from any other form element; it's just it would list menu items. You have multiple names to worry about instead of just one. So if you're not the one creating the processing page, be sure to ask which values you need for your form.

Show transcript

This video is part of

Image for Dreamweaver CS6 Essential Training
Dreamweaver CS6 Essential Training

90 video lessons · 53387 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
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

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.


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.

Join now "Already a member? Log in

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 CS6 Essential Training.

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
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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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.