Showcase and discover digital art at yex

Follow Design Stacks

Subscribe to our free newsletter to get all our latest tutorials and articles delivered directly to your inbox!

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.

  1. Load the Travel Agency homepage in a browser. Then, click Edit content to load the editor.
  2. 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:

    Select the desired CSS class from the menu

    Figure 39. Select the desired CSS class from the menu

  3. The editor displays the formatted header just as it will look in the browser after you save the content:

    Changes are immediately displayed in the editor

    Figure 40. Changes are immediately displayed in the editor

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

    Click the icon to access the Remote File Explorer

    Figure 41. Click the icon to access the Remote File Explorer

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

    Insert  an image to replace the default one

    Figure 42. Insert an image to replace the default one

  6. The new image is displayed inside the editor:

    New images are rendered as soon as they are inserted

    Figure 43. New images are rendered as soon as they are inserted

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

    Click the toolbar button to apply formatting

    Figure 44. Click the toolbar button to apply formatting

  8. Creating links is just as easy. First, you select the text to turn into a link and then click the Insert Link button:

    Insert a new Hyperlink

    Figure 45. Insert a new Hyperlink

  9. In the dialog box that loads enter the desired URL:

    Enter the hyperlink URL

    Figure 46. Enter the hyperlink URL

  10. Click OK and the link has been created:

    New link in the editor.

    Figure 47. New link in the editor.

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

Changed preview

Figure 48. Changed preview

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:

  1. 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.
  2. 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.
  3. Enhance the page for adding destinations by replacing the textarea with KTML Lite, as shown above.

Comments