• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Using Dreamweaver Templates ... > Setting Editable Tag Attributes

Setting Editable Tag Attributes

New in Dreamweaver MX, you can choose to make certain tag attributes editable in template pages.

To set a tag attribute as editable:

1.
On the template document, click on the object or text you want to edit, and select its tag in the Tag selector (Figure 14.19).

Figure 14.19. Select the tag whose attributes you wish to make editable in the tag selector.


2.
From the menu bar, select Modify > Templates > Make Attribute Editable. The Editable Tag Attributes dialog box will appear (Figure 14.20).

Figure 14.20. Specify which attribute you wish to make editable.


3.
Select your attribute from the Attribute drop-down menu (Figure 14.21).

Figure 14.21. Only those attributes already applied to the tag will appear in the menu.


Only those attributes already applied to the tag will appear in the menu; to add another, click on Add. A dialog box will appear (Figure 14.22); type your attribute in the text box and click on OK to return to the Editable Tag Attributes dialog box.

Figure 14.22. You can specify a different attribute here.


4.
With your attribute selected in the Attribute drop-down menu, check the Make Attribute Editable checkbox (Figure 14.23); more options will appear.

Figure 14.23. Click this checkbox in the Editable Tags Attribute dialog box to make the attribute editable.


5.
Label your attribute something memorable, like sidebarColor or catalogImage.

6.
Now, from the Type drop-down menu, choose how the attribute can be edited on template pages (Figure 14.24):

Figure 14.24. Select a type of value for the attribute.


  • Text allows the user to type a value.

  • URL allows the user to set a local path for a page, an image, or a media object.

  • Color allows the user to use the color picker.

  • True/False is used mainly for JavaScript and CSS functions.

  • Number limits the entries to numbers, for items such as height or Vspace.

7.
Type a default value—which will show up on the page until the value is changed—in the Default text box.

8.
Repeat Steps 4-7 for additional attributes.

9.
Click on OK to save your changes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint