Introduction
Once you have installed iKnowBase,
you'll want to start building your first site.
Let's say that you want to have three public
pages ("Domestic", "International", and "Sport").
You want to display Articles on generic "section" pages along with "Read More"
links that display the full article text on a separate "content" page.
Also, the right column of the layout should display all the latest articles, regardless of section.
All the pages should have a width of 800 pixels.
Instead of using the bundled xNet components, let's see how we can build a web site from scratch -
this will make it easier to understand how things are connected.
In short, these are the steps:
- Define Metadata
- Create Page Group MFIKBS
- Create Page Elements Page Top, Page Bottom, and Page Menu
- Create HTML Templates MFIKBS_FORM and MFIKBS_PAGE
- Create Page Template MFIKBS_PAGE
- Create Pages Domestic, International, and Sport
- Create iKnowBase Elements (targets, menu, form, quick links, presentation styles, shared viewers)
- Start using the site
Defining Metadata
- Create Dimension type MFIKBS_sectionType
- Create Dimension MFIKBS_sectionDim with subdimensions (each with Dimension type MFIKBS_sectionType):
- Domestic (sort 10)
- International (sort 20)
- Sport (sort 30)
- Create Attribute MFIKBS_section:
- Dimension: MFIKBS_sectionDim
- Type: MFIKBS_sectionType
- Create Attribute MFIKBS_section:
- Datatype: Dimension
- Dimension: MFIKBS_sectionDim
- Dimension type: MFIKBS_sectionType
- Max number of values: 10
- Create Information type MFIKBS_article with the following Attributes:
- Responsible (Required)
- MFIKBS_section
Creating Page Group
- Create a Page Group
with Name MFIKBS and Display Name My First IKB Site
Creating Page Elements
Some areas of the pages will contain static HTML. To avoid having
the same HTML stored in multiple locations across the portal, we'll
create Navigation Pages that will be available as portlets
under Portlet Repository > Published Portal Content > your_page_group.
- Create a Navigation Page
with Name MFIKBS_top and Display Name Page Top
and insert an HTML Portlet with the following content:
<table cellspacing="0" cellpadding="10" width="100%" bgcolor="#999999"><tr><td>
<font class="PortletHeaderText">My First IKB Site's Amazing Banner</font>
</td></tr></table>
- Create a Navigation Page
with Name MFIKBS_bottom and Display Name Page Bottom
and insert an HTML Portlet with the following content:
<table cellspacing="0" cellpadding="10" width="100%" bgcolor="#999999"><tr><td>
<font class="PortletHeaderText">Our motto is <i>Productivity with Choice</i></font>
</td></tr></table>
- Create a Menu
with Name MFIKBS_menu and Display Name Page Menu
(we'll add and configure a menu portlet on this page once the Pages have been created)
Creating HTML Templates
- Create a CSS file called mfikbs.css
(containing font classes MFIKBS_title and MFIKBS_lead)
and copy it to a folder called css under the DocumentRoot of your Portal Middle-Tier
(e.g. C:\ora101202mt\Apache\Apache\htdocs\css)
- Create an HTML Template
with Name MFIKBS_PAGE and the following Template Definition:
<html>
<head>
<title>iKnowBase - #TITLE#</title>
#PAGE.STYLE#
<ORACLE>
begin
ikb.ikb_portal_functions.initialize_from_ui(portal.wwpro_api_parameters.retrieve, '#PAGE.STYLE#');
ikb.ikb_portal_api.generate_common_jsscript;
end;
</ORACLE>
<link rel="stylesheet" href="/css/mfikbs.css" type="text/css">
</head>
<body>
<center><table width=800><tr><td>
#BODY#
</td></tr></table></center>
</body>
</html>
- Create an HTML Template
with Name MFIKBS_FORM and the following Template Definition:
<html>
<head>
<title>iKnowBase - #TITLE#</title>
<ORACLE>
begin
ikb.ikb_portal_functions.initialize_from_ui(portal.wwpro_api_parameters.retrieve, '#PAGE.STYLE#');
ikb.ikb_portal_api.generate_common_jsscript;
end;
</ORACLE>
</head>
<body>
<center><table width=800><tr><td>
#BODY#
</td></tr></table></center>
</body>
</html>
Creating Page Template
To minimize administration overhead, we'll base all Portal Pages
on a Page Template.
- In Page Group MFIKBS, create a Page Template
with Name MFIKBS_PAGE
and organize it with the regions shown here:
Connect the Page Template to the
HTML Page Skin MFIKBS_PAGE
(found on the Optional tab in the Properties form)
|
|
| Portlet "Page Top" |
Portlet "Page Menu" (100 pixels) |
iKnowBase Viewer (550 pixels) |
Portlet "10 Latest Articles" (150 pixels) |
| Portlet "Page Bottom" |
|
|
| |
Creating Pages
- Create the following Pages
in the MFIKBS Page Group
based on the MFIKBS_PAGE Page Template:
- Create a page called MFIKBS_form
based on the HTML Template MFIKBS_FORM
and include the "Run Form" portlet
Creating iKnowBase Elements
- Create Target MFIKBS_form:
- Target type: Page
- Portal Page: MFIKBS_form
- Window or frame name: _blank
- Scrollbar: Yes
- Resizable: Yes
- Create Menu MFIKBS_menu with menu items pointing to the Portal pages
MFIKBS_domestic, MFIKBS_international, and MFIKBS_sport
Please note:
- The Sort# column must be entered, e.g. 10, 20, 30, etc
- At least one of the menu elements must have the Show public field set to Yes
- Create Form MFIKBS_article:
- Information type: MFIKBS_article
- Format: Text
- HTML based generator: Rule-based
- Target on Show: MFIKBS_form
- Width: 800
- Height: 600
- Attribute tab: Select
Title,
Lead,
Content,
Responsible, and
MFIKBS_section
- Create Quick link MFIKBS_article:
- Select FORM MFIKBS_article and Target from Form
- Create Presentation style (Free form) MFIKBS_section:
- Num.columns: 2
- Datasource: <iKnowBase - Documents>
- Selected attributes:
<Title>,
<Blank line>,
Lead,
<Blank line>,
Mod.Date,
Responsible
- Show Add links: Select "Show add links in show mode"
- Style tab: Select Font content for the following attributes:
- <Title>: MFIKBS_title
- Lead: MFIKBS_lead
- Create Presentation style (Free form) MFIKBS_content:
- Datasource: <iKnowBase - Documents>
- Selected Attributes:
<Title>,
<Blank line>,
Lead,
<Blank line>,
Content,
<Blank line>,
<Edit>,
<Links>,
DocumentID
- Show Edit links: Select "Show edit/delete links in show mode"
- Style tab: Select Font content for the following attributes:
- <Title>: MFIKBS_title
- Lead: MFIKBS_lead
- Advanced tab:
- Title elements: Select Link type "No link" for Title
- Regular items: Set DocumentID hidden
- Links:
- Link to: DocumentID
- Text source : From the label
- Create Presentation style (Free form) MFIKBS_last:
- Num.columns: 1
- Datasource: <iKnowBase - Documents>
- Selected attributes:
<Title>,
<Blank line>,
Lead,
<Blank line>,
Mod.Date
- Style tab: Select Font content for the following attributes:
- <Title>: MFIKBS_title
- Lead: MFIKBS_lead
- Advanced tab:
- Regular items: Set Mod.Date hidden, and select Descending sorting
- Create Target MFIKBS_goto_content:
- Target type: Page
- Portal-Page: MFIKBS_content
- Parameters: Add a parameter of type iKnowBase and select Parameter name "iKB Attrib: DocumentID"
- Create Shared Viewer MFIKBS_last:
- Presentation style: MFIKBS_last
- Target for text: MFIKBS_goto_content
- # records: 10
- Selected attributes:
- Information Type > Equal > MFIKBS_article
- MFIKBS_section > within this dimension > Domestic, International, and Sport
- Create Shared Viewer MFIKBS_domestic:
- Presentation style: MFIKBS_section
- Target for text: MFIKBS_goto_content
- Selected attributes:
- Selected attributes:
- Information Type > Equal > MFIKBS_article
- MFIKBS_section > within this dimension > Domestic
- Quick links: Select for MFIKBS_article and enter Add new article as Title
- Copy Shared Viewer MFIKBS_domestic to MFIKBS_international and MFIKBS_sport and adjust parameter "MFIKBS_section within this dimension ..."
- Create Shared Viewer MFIKBS_show_content:
- Presentation style: MFIKBS_content
- # records: 1
- Attributes: Param : iKB Attrib: DocumentID
Connecting the Elements
- Add portlet "Advanced menu" (Portlet Repository > Portlet Staging Area > iKnowBase - Menu Tools (IKB)) to the Navigation Page MFIKBS_menu and configure:
- Select menu: MFIKBS_menu
- Menu style: UL/LI menu
- Show root level: No
- Add portlet "iKnowBase Viewer" (Portlet Repository > Portlet Staging Area > iKnowBase - Content Tools (IKB)) in the right region of Portal Template MFIBKS_page
and choose Shared Viewer MFIKBS_last
- Add portlet "iKnowBase Viewer" (Portlet Repository > Portlet Staging Area > iKnowBase - Content Tools (IKB)) in the middle region of Portal Page MFIBKS_content
and choose Shared Viewer MFIKBS_show_content
- Add portlet "iKnowBase Viewer" (Portlet Repository > Portlet Staging Area > iKnowBase - Content Tools (IKB)) in the middle region of Portal Pages MFIBKS_domestic, MFIBKS_international, and MFIBKS_sport
and choose Shared Viewer with the same name as the Portal Page
Start using the site
- Go to http://donald.disney.com/portal/page/portal/MFIKBS/MFIKBS_domestic
- Click on the "Add new article" link