wcmElement wcmListStart wcmListEnd wcmListElement

Idoc Script Extensions 9-3 ■ regionDefinitionDocName : The dDocName of the region definition to associate with the region template named in templateDocName. ■ placeholderActions : The allowed actions of the placeholder definition, as follows: – E allows contributor update – P allows workflow approve – R allows workflow reject – I allows viewing docInfo – S allows switching the data file – U allows viewing the web usage report – T allows viewing the web tracker report – M allows updating the docInfo – V allows switching the region template – N allows remove content Each selection corresponds to the checkbox for the action in the design view of the placeholder definition in Designer. If you use parameters that do not work together for example, specifying a subtemplate as well as a region definition, then the script will execute based on the order of parameters listed above. Code Examples --wcmPlaceholderplaceholderName-- --wcmPlaceholderplaceholderName,dataFileDocName=dDocName, templateDocName=[region template dDocName|subtemplate dDocName],placeholderDefinitionDocName=dDocName, regionDefinitionDocName=dDocName, placeholderActions=EPRISUTMVN--

9.3 wcmElement

Description The wcmElement script inserts an element in a region template. The element does not have to be listed in the region definition. This script allows you to retrieve out of the data file the content associated with the named element. This is only for WYSIWYG, Image, Text, and Custom elements. The content of the element that is inserted will be further evaluated in the scope of the current layout page and therefore can include further server-side Idoc Script, if necessary. Parameters ■ dDocName : the dDocName of the data file containing the elementName. If a dDocName is not specified, then the current data file associated with the placeholder is used. ■ elementName : The name of the element. Required. 9-4 Oracle Fusion Middleware Technical Reference Guide for Site Studio Code Example --wcmElementelementName-- --wcmElementdDocName, elementName--

9.4 wcmListStart

Description This function defines the start of a List element. Parameters ■ elementName : The name of the list element. Required. Code Example --wcmListStartelementName--

9.5 wcmListEnd

Description This function defines the end of a list element. Parameters ■ elementName : The name of the list element. Required. Code Example --wcmListEndelementName--

9.6 wcmListElement

Description This performs the same function as wcmElement but it is for placing static list element content into the region template. This script allows you to retrieve out of the data file the content associated with the named static list element. The content of the element that is inserted will be further evaluated in the scope of the current layout page and therefore can include further server-side Idoc Script, if necessary. Parameters ■ listName : The name of the list element. If wcmListElement is used between wcmListStart and wcmListEnd then listName can be omitted. ■ elementName : The name of the element within the list used to construct the listElement. ■ rowNum : The row position of the elementName within the listName. Code Example --wcmListElementWysiwyg, rowNum-- The above example uses only elementName and rowNum. Idoc Script Extensions 9-5 Example within context: --wcmListStartStaticList-- --wcmListIndex = 0-- --wcmListNumRows = wcmListRowCount--