Adobe Dreamweaver CS3 Manual do Utilizador Página 490

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 489
DREAMWEAVER CS3
User Guide
483
3 Choose one of the following options:
To create a Spry Region, select Region (the default) as the type of region to insert.
To create a Spry Detail Region, select the Detail Region option. You would only use a detail region if you want to
bind dynamic data that updates as data in another Spry region changes.
Important: You need to insert a detail region in a different <div> from the master table region. You might need to use
Code view to place the insertion point precisely.
4 Choose your Spry data set from the menu.
5 Ifyouwanttocreateorchangetheregiondefinedforanobject,selecttheobjectandchooseoneofthefollowing:
Wrap Selection Puts a new region around an object.
Replace Selection Replaces an existing region for an object.
6 When you click OK, Dreamweaver puts a region placeholder into your page with the text “Content for Spry
RegionGoesHere.”YoucanreplacethisplaceholdertextwithaSprydataobjectsuchasatableorrepeatlist,orwith
dynamic data from the Bindings panel.
7 ToreplacetheplaceholdertextwithaSprydataobject(forexample,aSpryTable),clicktheappropriateSprydata
object button in the Spry category of the Insert Bar.
8 To replace the placeholder text with dynamic data, use one of the following methods:
Drag one or more elements from the Bindings panel on top of the selected text.
Note: In the Bindings panel, there are some built-in Spry elements, ds_RowID, ds_CurrentRowID, and ds_RowCount,
also listed. Spry uses these to define the row in which a user clicked when determining how to update dynamic detail
regions.
In Code view, type the code for one or more elements directly. Use this format: {dataset-name::element-
name}
,asin{ds1::category}.or{dsProducts::desc}. If you are only using one data set in your file, or if you
areusingdataelementsfromthesamedatasetthatyoudefinedfortheregion,youcanomitthedatasetnameand
simply write
{category} or {desc}.
Regardless of which method you use to define the contents of your region, the following lines are added to your
HTML code:
<div spry:region="ds1">{name}{category}</div>
<div spry:region="ds2">{ds1::name}{ds1::descheader}</div>
September 4, 2007
Vista de página 489
1 2 ... 485 486 487 488 489 490 491 492 493 494 495 ... 737 738

Comentários a estes Manuais

Sem comentários