Tuesday, December 14, 2010

How to create a refreshing web page from an Opalis workflow

Of course you know the Create Web Page object to create a website through a workflow.
What might be really cool is to create a web page using a template that refreshes automatically. So you can create your own dashboard views to provide information on a central dashboard screen in a office.
At first, create a file called template.html with the following content:
<H1>This is my Opalis dashboard web page</H1>
Your browser should automatically refresh every five seconds.

Important are the tags <DOC-TITLE> and <DOC-TEXT>. These tags will be replaced in your workflow.

In your workflow you add a Write Web Page object and type path and file name into the Template field. Now the tags above will be replaced by the Content Title and Text of this object.
If you are getting more than one line from an object before, you can flatten the data publishing object.

Hint 1: to get separate lines in the web page for every single entry simple use <BR> as separator when flattening.

Hint 2: if you like to use different styles in the body, you can add the HTML tags to the Text field as you know it from normal HTML developing.

All information is provided "as is" without any warranty! Try in lab before. Handle with care in production.

1 comment:

  1. These codes can really help you with your problem. If you want to refresh your webpage automatically, you should use these lines of codes.

    dentist seo