iw-app

iw-app is used to embed an IntraWeb application into a the container WordPress page or post. Currently only one IntraWeb application can be loaded per page.

Parameters

Note that all parameter names must be all lowercase.

All parameters are optional. The shortcode can be used by itself, in which case it will attempt to load Index.iwml and IntraWeb.js from the shadow location.

src

Specifies the application to load.

Path

Example:

src="/IW17/Demos/Guess/"

Pathname

Example:

src="/IW17/Demos/Guess/MyPage.iwml"

Shadow Tree

A value of * (default) specifies to load the application from the shadow tree.

Example:

src="*"

Since * is the default, src can be omitted completely and * will be assumed. * can also be used with a suffix such as:

src="*/other.iwml"
src="*/other/"
src="*/other/Something.iwml"

lib

If omitted, IntraWeb.js will be loaded from the src path. Otherwise, lib must contain the URL where IntraWeb.js resides.

target

not specified

If not specified, IntraWeb will render in place of the tag. In the case of a template as the root of the page, the template content must be contained within the short code and a closing short code must exist as well.

Example:

*

Specifies that the target is the content div of WordPress. If used with a root page template it will be merged, otherwise the WordPress content will be replaced entirely.

**

Same as *, but specifies the full HTML body instead. ** should only be used if you wish to replace the entire body including side bars and other content, or with page root templates in which the WordPress content outside of the content div also contains IntraWeb template tags.

server

If specified, points to an IntraWeb server and both lib and src should not be used. If lib and src are also specified they will override the settings from server which is undesirable except in certain debugging scenarios.

To use server, simply point it at the IntraWeb server. IntraWeb servers are typically built using Delphi, but in the future will be possible in other languages.

Example:

[iw-app server="http://127.0.0.1:8888"]

params

Specifies additional parameters to pass to the IntraWeb application. The format is the same as in URLs with & used as a separator.

Parameters specified here are for user code only and are optional. Aside from passing them to the IntraWeb application, IntraWeb does not use these values.

params="param1=value1&param2=value2"

See Also