Skip to Content

In this post I will describe how easy is to consume your portal’s iView content in enterprise workspaces, or in other words how to create a module template from an iView.

Before we start, let’s explain what an iView is:

An iView is a portal semantic object that runs a specific portal component. An iView runs inside a portal’s page or a role.


So, what is a module template/instance?

A Module Template is basically an iView that is available for consumption inside a workspace. All of the module templates stored in a specific enterprise workspaces portal content folder (in PCD).

1.JPG

Enterprise workspaces come with a set of OOTB (out of the box) module templates, such as: Text Pad, Document List, Link List, Member List, etc. All module templates are managed (CRUD operations) through Workspace Administration -> Module Templates.

A module instance is an iView that runs inside a Workspace Page, represented as a delta link to the corresponding module template. A module instance is created when adding a module template to a Workspace instance, which can be done by drag & drop of a module template from the Module Gallery into a Workspace instance page or when creating a workspace from a workspace template that contains modules.

 

Creating a Module Template

 

There are several options for creating module templates:

  • Portal content – based on an iView/page in the portal content tree
  • Portal role – mass creation of module templates based on iViews/Pages assigned to a chosen Portal Role
  • URL – based on a URL, such as PCD ID of an iView/Page, or Web URL

Creating a module template from portal content

OK, let’s create a new module template from scratch:

First, develop a regular, basic portal application.

2.JPG

Deploy your application to the development or testing environment and create an iView from this application.

3.JPG

We have an iView; now let’s create a module template from it. Navigate to Workspace Administration -> Module Templates and choose the appropriate source under Create a Module Template.

4.JPG

In the left-side panel, browse to your iView, highlight it and click ‘Next’. In the next screen you will have to configure the new module template’s general properties.

5.JPG

Switch to the ‘Permissions’ tab and define the appropriate permissions for this module template, when finished, click on ‘Done’.

6.JPG

Congratulations! You have a new module template that will be available in the ‘Available Module Templates’ table.

7.JPG

Now, if you want to see this module template in your gallery you will have to clear the Content Providers cache.

To do so, go to ‘Workspace Administration -> Configuration -> Content’ and click on the ‘Clear All Caches’ button (located in the ‘Content Providers’ section)

 

That’s it, you are done! Now, all you have to do is go to your workspace and this module template will be available to be added!

8.JPG

Go back to: A Deep Dive into SAP NetWeaver Portal, Enterprise Workspaces (Main TOC blog)

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply