Using conditional template expressions


show more Using conditional template expressions provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics show less
please wait ...

Using conditional template expressions

Now that we have used template parameters and template expressions, let's examine making our template expressions a little more complex. Template expressions are in reality just a small subset of JavaScript, and because of this we can modify expressions using various operators to have them perform the calculations or evaluate data or perform conditional logic, which is what we are going to have them do. So, let's take a look in our cheek_artists_bios template again. So, in the Exercise Files, in the Templates directory, I have opened this file.

I want to examine the sidebar for a moment. Every bio page and every gallery page has a link in the secondary navigation over here. So, while we are creating these bios, I would really like to indicate which bio we are on by showing our current state and we have already done the CSS for this. There is a current class style that if we apply the class style to one of those links, it will show up as the Current. So, we could certainly open ...

Using conditional template expressions
Video duration: 8m 54s 11h 10m Intermediate

Viewers:

Using conditional template expressions provides you with in-depth training on Web. Taught by James Williamson as part of the Dreamweaver CS3 Beyond the Basics

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...