1/10/2023 0 Comments Html snippetsYou can, instead, pass a blank parameter in the Idoc Script function. If you used an XML-compliant template to create an HTML snippet of code from a content item (see "Method 1: Make the Conversion Template XML-Compliant"), then you do not need to specify a layout template that creates the same HTML snippet effect. For example, if you want to include the latest version of a "Sales" document using the "Business" Classic HTML Conversion template and "snippet_layout" layout template into your web page, you would use the following code: ![]() This Idoc Script function references your content items by content ID, version, template, and layout (layout template). The way to do this is to use the following Idoc Script function in an HCST file: You can specify the appropriate template to use with an Idoc Script function see "Include HTML Snippet Using Idoc Script Function").Ĩ.3.2 Include HTML Snippet Using Idoc Script FunctionĪfter you have created your snippets of HTML from your content items (see "Generating a Snippet of HTML"), you are ready to reference the content items from another web page. Whether you choose to create a Classic HTML Conversion template or layout template for the purpose of HTML snippets, it is not necessary to associate either template with your content items. This file is located in the /ucm/Distribution/DynamicConverterSamples directory. You can also use the sample layout template "snippet_layout.txt" (see "snippet_layout.txt"), which contains the necessary code. You can accomplish this by placing the following code (called a token), by itself, in a layout template: Method 2: Create a Layout Template with Body Content OnlyĪnother way to remove the standard HTML tags that are placed at the beginning and end of a web page (,, , etc.) is to specify a layout template that places only the contents of the BODY tag in your converted HTML file. Your conversion template will now create the required HTML code from a content item so that it can be easily included in a separate web page (using an Idoc Script function see "Include HTML Snippet Using Idoc Script Function"). Select the Generate XML compliant output checkbox to enable this Element.Ĭlick OK to close the Globals dialog and click OK again to close the Template Editor. In the Globals dialog, click the Options tab. The Template Editor is started (see "Classic HTML Conversion Template Editor"). (Instead of updating an existing Classic HTML Conversion template, you may want to create a new template designed specifically for HTML snippets. The Edit Templates page is displayed (see "Edit Templates Page").Įnter the content ID for the desired template in the Template text box or select your desired template from the Available Templates menu. Open the Dynamic Converter Admin page (see "Dynamic Converter Admin Page"). To create an XML-compliant Classic HTML Conversion template, perform the following steps: ![]() Method 1: Make the Conversion Template XML-Compliantīy making your template XML-compliant, you remove the standard HTML tags that are placed at the beginning and end of a web page (,, , etc.). Making the conversion template XML-compliantĬreate a layout template with body content only You can generate a snippet of HTML from a content item using either of two methods: The result is a portal-style website (see "Portal-Style Website Sample") that draws dynamically generated content from any number of sources. ![]() Furthermore, you can specify a particular version, template, and layout file for each of the included content items. With the current version templates and the new Idoc Script function, you can now pull dynamically converted material from multiple content items or even portions of those content items and display them back to the user as a single web page (combined HTML snippets). There was no method for combining multiple content items and displaying them on the same web page.ĭynamic Converter now resolves this problem and, as a result, allows you to create powerful, information-rich web pages for your users. However, if you wanted to combine information from numerous source content items onto one web page (perhaps marketing information from one document, press releases from another document, or client feedback from a form) you would need to manually create such a document and convert it to a web page. For the purposes of turning a native business document into a web-viewable version (for everyone to see), the solution was there. ![]() In earlier versions of Dynamic Converter (prior to version 6.0) and Content Server, a content item could be checked in, dynamically converted to HTML, and displayed as a web page, by itself, to the user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |