Site Studio Tag Descriptions Site Studio wcm:context Tag

6-2 Oracle Fusion Middleware Developers Guide for Site Studio for External Applications

6.1.1 Site Studio Tag Descriptions

This section lists each Site Studio tag and provides a brief description. See the specific tag for additional details.

6.1.2 Site Studio wcm:context Tag

The Context tag creates a new SiteContext object and sets it on the current HttpServletRequest. This overrides any existing SiteContext already present. Subsequent calls to any Site Studio API or tag will use this context. If the context is not initialized from the current path initFromPath is false or not specified, then the new SiteContext will have the same site ID and same URL unless specified as the existing SiteContext, if available. Parameters ■ siteID: The site identifier. Required. ■ url: The site path. This is a portion of path minus the site ID for example, aboutindex.html. Required. Tag Description wcm:context The Context tag creates a new SiteContext object and sets it on the current HttpServletRequest. This overrides any existing SiteContext already present. Subsequent calls to any Site Studio API or tag will use this context. wcm:dataFile The Data File tag loads content from the content server and parses it into a DataFile object. The object is then exposed as a variable to be used by the Expression Language EL to access the individual components of the data file. wcm:dynamicConversion The Dynamic Conversion tag is used to specify the conversion rule to use when creating a dynamic conversion of a native document. wcm:dynamicList The Dynamic List tag executes the query from the dynamic list element specified that is in the region definition, and makes the results available in the variable var. wcm:idcParameter The Idc Parameter tag is used in combination with the Idc Service tag to execute a IDC service call on the content server. Takes a namevalue pair. wcm:idcService The Idc Service tag is used in combination with the Idc Parameter tag to execute a IDC service call on the content server. wcm:metadata The Metadata tag performs a DOC_INFO service call for the content item, and makes the resulting DataBinder available containing the document information about the given content item. wcm:placeholder The Placeholder tag is used to specify where an item will be inserted in a template. This will typically be content, but it can also be navigation, code, subtemplates, etc. wcm:staticPlaceholder The Static Placeholder tag can be used to add a placeholder with a fixed data file. This is useful for content that does not change, such as headers and footers. wcm:url The URL tag renders either hierarchical links into the site structure or links to content server content. Site Studio Tag Library and Helper Methods 6-3 ■ initFromPath: Set to true to initialize the context from the current HttpServletRequest path the url parameter is then ignored. Example Initialize a new context to the primary page of the about section for site ID mysite: wcm:context siteID=mysite url=aboutindex.html Reset the current SiteContext to a new URL, without specifying the site ID: wcm:context url=index.html

6.1.3 Site Studio wcm:dataFile Tag