8
HTML Snippets 8-1
8
HTML Snippets
This section covers the following topics:
■
About HTML Snippets on page 8-1
■
Portal-Style Website Sample on page 8-1
■
Combining HTML Snippets Into a Web Page on page 8-2
■
Inline Dynamic Conversion on page 8-4
■
Displaying Content Server Metadata on a Web Page on page 8-4
8.1 About HTML Snippets
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. For the purposes of turning a native business document into a web-viewable version for everyone to see, the solution was there.
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. There was no method for
combining multiple content items and displaying them on the same web page.
Dynamic Converter now resolves this problem and, as a result, allows you to create powerful, information-rich web pages for your users. 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. Furthermore, you can specify a particular version, template, and layout file for each of
the included content items.
The result is a portal-style website see Portal-Style Website Sample
on page 8-1 that draws dynamically generated content from any number of sources.
8.2 Portal-Style Website Sample
The illustration below demonstrates a simple portal-style web page that wraps a Content Server environment borders and navigation around four pieces of
dynamically converted content. Each piece of content is actually a document checked into Content Server. There are many pieces coming together on the fly, but to the
user, it is a single and seamless web page.
8-2 Administrators Guide for Dynamic Converter
Figure 8–1 Portal-style Web Page With Html Snippets
To create a page like this or a similar one where you are combining HTML snippets of code, you need to customize the dynamic conversion of your content items so that
they can be displayed on the same web page. You do this by creating a template or layout file that will strip the TOP, HEAD, and BODY tags out of the dynamically
converted HTML file see step 1 in
Combining HTML Snippets Into a Web Page on