Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
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.
Often your page structure will require a more complex template workflow than we have used up until this point. If your site consists of multiple regions that have nested pages, often one template will not be sufficient. Tying those templates together and creating more complex and flexible template regions is the subject of our next few exercises. You will notice I have the Artist Example file opened. So if you are following along with me, go ahead and open up the artist.htm page. Now, I am going to preview this in our browser, because I want to point out a few things about this. When we look at our artist page, we have a list of links on the right-hand side and these link to each of the artist bio pages and gallery pages. So if I click on the bio page of Aimee, we can see her bio.
Her bio is much more detailed page. That's going to give a longer description of who she is and has a link to her gallery and has a headline. And the gallery pages will showcase her gallery and we have got a small clickable thumbnail gallery as to there for each of the artist. So this is a much more complex structure than what we were dealing with, with our last template, because the last template had one level of child pages, where the artist section actually has two levels of child pages, and there is a bio section and a gallery section.
So we are going to need multiple template files to deal with that rather than trying to throw all this content into one template file. To do this, we will create nested templates. So I am going to go ahead and close Firefox and go back into Dreamweaver. Now the process of creating nested templates, we first have to create a root level template and we have a root level template for our site, but we don't have a root level template for the artist section. So we need to go ahead and create one. So let's go to File and choose Save As Template, and we will put it in the Chapter 6 site obviously, and we are just going to call this template Cheek Artists keeping with our name in convention, and giving it a description. I am just going to go ahead and title this the Root Level Artist template, and we will save it. It's going to ask me if we want to update links and you are always going to answer Yes to that question.
So now we are working on the cheek_ artist.dwt. We will base it off of the RS page and you can see it's been added to the Templates directory. So if yours isn't expanded, you can expand it and examine that. Each of the pages built from the Root Level Artist template are going to have an active length of artist. So we don't need to change the body tag ID. The banner graphic on the other hand will need to change. So we could do what we did in the previous example and make the attribute editable. But we are going to make the entire banner graphic editable. There is a reason for that and the reason is that we are going to be using template parameters later on. So this is something that we are going to do that it's going to allow us to in our nested templates create these template parameters and we will discuss that in later exercise.
So I am going to select the Banner Graphic and I am going to go up to Insert > Template Objects, and choose Editable Region. I will go ahead and call this Banner Graphic and I will click OK. So now our banner graphic is inside of an editable region. Our Sidebar contains a navigation list that is going to be consistent all the way throughout all of our artist pages. So I am going to start at the very top of the sidebar and I am going to highlight all the way down to Sidebar and I am going to go up to Insert > Template Objects > Editable Region, and we will call this Sidebar.
So we are creating this essentially the same way we created our previous template. So scroll back over and the last region we need to create is our main content region. So I am going to start using artist and it will go ahead and highlight all the way down. Actually, we really don't even need to do that. Using the Tag Selector, if you click anywhere inside that content, you can just click on the Div Artist Info tag to select that and you can make that an editable region. So I am going to go up to Insert > Template Objects > Editable Region, and we will just call this region Artist Info, click OK.
So you will notice that below the artist info area, we have a brief description of one artist. Now, this actually needs to repeat on the artist page and might need to repeat on subsequent pages. Maybe we are going to do in upcoming shows and have a list of artists like this. So we are going to use a template feature called a Repeating Region. Repeating Regions allow us to take content that needs to repeat on the page and create it very easily simply by clicking an Add button rather than having to copy and paste or type it all over again. So I am going to click inside the artist description and using the Tag Selector, I am going to select the div. artist tag. So using the Tag Selector, I am going to select the div.artist tag. Now, to create a repeating region, I am going to go up to Insert > Template Objects, and this time instead of Editable Region, we will choose Repeating Region.
So I am going to select Repeating Region. Now, it's going to ask me for a name for this and we are going to go ahead and name this one Artist Listing and we will go ahead and click OK. Notice the difference in the tag up top, instead of saying Editable Region, it says Repeat, and if I go over to Code view, you can see that there is a tag created called Template Begin Repeat and then it gives it a name of that section. So in addition to having editable regions, we now have this repeating region tag. So we are going to go ahead and save our template, and in our next exercise, we will create a page based off of that and use the repeating region.
Find answers to the most frequently asked questions about Dreamweaver CS3 Beyond the Basics.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.