Edit Your First Travel Destination
Edit Your First Travel Destination
Now you will learn how to use the editor you’ve just applied to edit a travel destination. During this section you will learn how to:
- Insert an image
- Apply text formatting
- Create links
To complete this section, you only need your web browser—you can edit everything online.
- Load the Travel Agency homepage in a browser. Then, click Edit content to load the editor.
-
The first step is to style the title. Select the Paradise Island text and from the CSS style pop-up menu, and select the pageName class:
-
The editor displays the formatted header just as it will look in the browser after you save the content:
-
Replace the default image with a new one. First click on the image and press the delete button to remove it. Then, click the Insert Image button in the KTML toolbar:
-
After the Remote File Explorer loads, click the Browse button to select one or more files on the disk that will be uploaded to the server. To insert the uploaded image, select it and click Insert:
-
The new image is displayed inside the editor:
-
To apply formatting to the text you can use the text formatting toolbar options. Simply select the text you want to change, and press the corresponding button to make the text italic, bold, or underlined.
-
Creating links is just as easy. First, you select the text to turn into a link and then click the Insert Link button:
-
In the dialog box that loads enter the desired URL:
-
Click OK and the link has been created:
- If you want to replace the text, you can simply copy it from a word document. Microsoft Word adds some specific markup that makes the HTML code difficult to read and use. All extra tags added by Word will be automatically removed when pasting.
To save the changes that you made, click the Update Record button. You will be redirected to the site home page that will display the updated text:
KTML Lite offers more than just text formatting, hyperlink and image insertion—users can insert and format tables, upload documents, manage them using the integrated file explorer, create links to them, or even create HTML forms.
KTML also comes with a more advanced version, featuring advanced Property panels for images, tables, form elements, and virtually any element in the editor, checking spelling, XHTML clean-up and even a remote image editor.
Where to Go from Here
In this article you have learned how to use Dreamweaver 8 and KTML to create a simple application that allows visual content editing. Before you can call the application complete, there are several things to do:
- Implement a User Authentication system using Dreamweaver server behavior. Create a login form, and set the Edit content link to be displayed for logged in users only.
- Create a page that lists all travel destinations, and a page to add new destinations. For the list you have to create a recordset and use a dynamic table, while for the page to add destination you will use the Insert Record Form Wizard in Dreamweaver.
- Enhance the page for adding destinations by replacing the textarea with KTML Lite, as shown above.
Comments