Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) E10726-01 |
|
Previous |
Next |
Home > Idoc Script Reference Guide > Management and Configuratio... > getTextFile
Gets the Web version of a text file and returns its contents to a string.
This can be used only with files that have a format containing text, such as text/html, text/plain, or text/xml.
There must be enough information to determine the content item's Web URL. The dID value is the only required metadata field.
The following information must be present:
dDocName, dWebExtension, dSecurityGroup, dRevLabel, and dDocType.
If Accounts are enabled, dDocAccount must also be specified.
This information is available automatically after a GET_SEARCH_RESULTS call or after a DOC_INFO call.
This function should be wrapped with a cacheInclude
call for greater performance. That can, however, create a security issue if all docs go to the same cache.
Type and Usage
Parameters
This function does not take parameters but uses variables on the page to determine the document's URL.
Example
<$loop SearchResults$> <$fullDocument=getTextFile()$> <h2><$dDocTitle$></h2> <div><$fullDocument$></div> <$endloop$>
See Also