Build applications with Script Portlet V 1.3
After the Script Portlet is installed, you can create and
edit applications with the Script
Portlet Editor, import items to existing applications, or
upload content from the command line.
Script Portlet Editor in Script Portlet V 1.3
You can take any existing web page, pick out individual
parts, and enter them into corresponding tabs in Script Portlet Editor.
The Preview window displays the results as you
edit.
Add tokens to generate unique namespace IDs when applications are pushed or imported to a Script Portlet V 1.3
Associating JavaScript variable names and HTML IDs with
a unique portlet namespace prevents portlets from colliding
with each other and uniquely identifies HTML element ID values
and JavaScript variables. To use a unique portlet namespace, you can
prefix or suffix any imported JavaScript, HTML, CSS, or JSON
variable or ID with the token __SPNS__ .
It is automatically replaced with the Web Content Manager ScriptPortletNamespace
plug-in at import or push time, which generates the unique
namespace for the portlet at render time.
Import applications that include links to JavaScript frameworks
To use a JavaScript framework or library from a portlet application, use portal theme
modules to load the shared JavaScript. Do not load them from the
portlet.
Script Portlet Editor actions menu overview
You can insert tags, preferences, and parameters and export a Script Portlet application
with the Actions menu in the Script Portlet Editor.
Combine local JavaScript files when you import applications
You can import Script Portlet V 1.3 applications with
multiple JavaScript files. JavaScript developers often minify and
combine JavaScript files before you publish them. If you cannot or
are not ready to combine your application JavaScript files before
you push or import the application to your portal, you can use the
following directive attribute to combine them at render time.
Adding an existing Script Portlet application from the toolbar
You can add a Script Portlet V 1.3 application to
a page directly from the toolbar when a Script Portlet application
is created and added to a site area.
Updating an existing Script Portlet application instance with the command line push application
You can use the Script Portlet V 1.3 push function
to update an existing application on a portal page or to update an
application in an IBM® Web Content
Manager site
area.
Generating a URL Map from local application paths to runtime Web Content Manager URLs
When you work with Script Portlet V 1.3 , you can generate
a JavaScript-based URL map from local application file system paths
to run time Web Content Manager Library
URL paths to application artifacts, when necessary. This feature
is advanced and is disabled by default.
JavaScript API for spHelper
The API reference can help you customize an instance of
your Script Portlet V 1.3 application
further.