Dreamweaver

Make text dynamic

You can replace existing text with dynamic text, or you can place dynamic text at a given insertion point on the page.

Add dynamic text

  1. In Design view, select text on the page, or click where you want to add dynamic text.
  2. In the Bindings panel (Window > Bindings), select a content source from the list. If you select a recordset, specify the column you want in the recordset.

    The content source should contain plain text (ASCII text). Plain text includes HTML. If no content sources appear in the list, or if the available content sources don’t meet your needs, click the Plus (+) button to define a new content source.

  3. (Optional) Select a data format for the text.
  4. Click Insert, or drag the content source onto the page.

    The dynamic content appears on the page if you’re working in Design view with Live Data enabled (View > Live Data).

    If Live Data is disabled, a placeholder appears instead. (If you selected text on the page, the placeholder replaces the text selection.) The placeholder for recordset content uses the syntax {RecordsetName.ColumnName}, where Recordset is the name of the recordset and ColumnName is the name of the column you chose from the recordset.

    Sometimes, the length of the placeholders for dynamic text distorts the page’s layout in the Document window. You can solve the problem by using empty curly braces as placeholders, as described in the next topic.

Display placeholders for dynamic text

  1. Select Edit > Preferences > Invisible Elements (Windows) or Dreamweaver > Preferences > Invisible Elements (Macintosh).
  2. In the Show Dynamic Text As pop‑up menu, select { }, and click OK.