creating and publishing web pages in the portal using web ... and...when ‘kapil sharma’...

17
Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features Applies to: SAP NetWeaver 2004s (SP13) Summary This article describes the process of creating and publishing web content and web pages in the portal using a Web Content Management tool known as Web Page Composer. It also describes ‘Approval’ feature at Site content level and ‘Versioning’ feature at Web page level. Author: Kapil Sharma Company: Tata Consultancy Services Ltd. Created on: 20 March 2008 Author Bio Kapil Sharma is working with Tata Consultancy Services Ltd for the last 3 years SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 1

Upload: others

Post on 18-Jan-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Applies to: SAP NetWeaver 2004s (SP13)

Summary This article describes the process of creating and publishing web content and web pages in the portal using a Web Content Management tool known as Web Page Composer. It also describes ‘Approval’ feature at Site content level and ‘Versioning’ feature at Web page level.

Author: Kapil Sharma

Company: Tata Consultancy Services Ltd.

Created on: 20 March 2008

Author Bio

Kapil Sharma is working with Tata Consultancy Services Ltd for the last 3 years

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 1

Page 2: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Table of Contents Introduction .........................................................................................................................................................3 1 Permissions .................................................................................................................................................3 2 Enable Approval Process on ‘Site Content’ folder ......................................................................................5 3 Enable Versioning on ‘Knowledge Bank’ web Page ...................................................................................9 4 Displaying and Restoring Previous Published Versions ...........................................................................12 Related Content................................................................................................................................................16 Disclaimer and Liability Notice..........................................................................................................................17

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 2

Page 3: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Introduction Web Page Composer (WPC) helps to bridge the gap between portal content and knowledge management. It is a new authoring tool for web content and web pages based on standard Knowledge Management and Portal functionality. WPC supports company-wide intranet, extranet or internet scenarios using portal and knowledge management capabilities of SAP NetWeaver. Additionally, WPC enables business users to create and publish web content and web pages in the portal. Finally, management of web sites may be delegated to the business users through WPC. This article describes the process of creating and publishing web content and web pages in the portal using a new Web Content Management tool known as Web Page Composer. It also describes ‘Approval’ feature at Site content level and ‘Versioning’ feature at Web page level.

1 Permissions

Sites Knowledge Management site

Site Content Site Navigation

Web Pages

Site Owner (Department Head)

Owner Owner Owner Owner Owner

Author Read Read Read/Write

Editor Read Read Read Full Control

Kapil Sharma (Visitor)

Read Read Read Read

For easy authoring of web site, web content and web pages customizable WCM roles are:

Site Owner (Department Head), Author, Editor and Kapil Sharma (Visitor) Site Owner (Department Head)

Permission: Owner of site ‘Knowledge Bank’ Creates Site named: ‘ Knowledge Bank’

SNAPSHOT: ‘Department Head’ creates Web site – ‘Knowledge Bank’

Assigns permissions of ‘Site Content’ folder (read/write) and ‘Web Pages’ folder (Full

Control) to ‘Author’ and ‘Editor’ respectively

SNAPSHOT: Read/Write permission assigned to ‘Author’ on ‘Site Content’ folder

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 3

Page 4: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

SNAPSHOT: Full Control permission assigned to ‘Editor’ on ‘Web Pages’ folder

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 4

Page 5: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

2 Enable Approval Process on ‘Site Content’ folder Use

Items in this folder are visible only to authors and approvers until approved by at least one approver in each step.

Prerequisites:

You (‘Department Head’ in this scenario) have write permission for the ‘Site Content’ folder

Procedure: 1) Go to the ‘Site Content’ folder of ‘Knowledge Bank’ Web site 2) Choose Details from the context menu of ‘Site Content’ folder 3) Choose settings -> Approval 4) Choose ‘Enable Approval Process’

SNAPSHOT: ‘Enable Approval Process’ on ‘Site Content’ folder wherein ‘Department Head’ is added as an approver for any web content created by ‘Author’

Publish Navigation Structure

Site Explorer tool supports Publishing process for site structures (staging)

Use: Once you have created a Web site, you publish the site navigation structure. All changes that you make to the site navigation structure are only visible in the portal if you publish the site navigation structure.

navigation.wpc

When you publish a site navigation structure, the system creates a file called navigation.wpc in the Site Navigation folder. This file describes the navigation structure of the Web site including all subordinate Web sites. The portal uses this file to display the navigation structure in the portal.

Procedure:

1) Go to the /Web Content/Sites/Knowledge Bank folder

2) From the context menu for the ‘Site Navigation’ folder, choose Publish Site Navigation.

3) If you are publishing a Web site for the first time, an administrator has to integrate it into the portal navigation structure of a user role.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 5

Page 6: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

The administrator only has to do this once.

4) If you later change the Web site navigation structure and publish it again, the changes are visible in the portal immediately.

Note: ‘Department Head’ performs this operation after creation and publishing of web pages (by ‘Editor’) containing mix web content/s

SNAPSHOT: When ‘Department Head’ publish Site Navigation it creates navigation.wpc file inside ‘Site Navigation’ folder

Author

Permission: Read/Write of ‘Site Content’ folder and ‘Read’ permission in subordinate folders Creates an article ‘TCS Press Release Article’

Note: Here ‘Author’ can also use customized web content template created using XML Form Builder (encircled in snapshot below)

SNAPSHOT: ‘Author’ uses standard web content template ‘Article’ provided in Web Page Composer tool to create an article ‘TCS Press Release Article’

Submit for ‘Department Head’ approval.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 6

Page 7: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

1) Go to the ‘TCS Press Release Article’ under ‘Site Content’ folder 2) Choose Details from the context menu of ‘TCS Press Release Article’ 3) Click ‘Submit for Approval’

SNAPSHOT: Prompt ‘Author’ to submit ‘TCS Press Release Article’ for ‘Department Head’ approval

‘Department Head’ approves the web content

1) Go to the ‘TCS Press Release Article’ under ‘Site Content’ folder 2) Choose Details from the context menu of ‘TCS Press Release Article’

SNAPSHOT: ‘Department Head’ can perform following operations on the web content (‘TCS Press Release Article’ in current scenario) submitted for approval:

‘Department Head’ approves the submitted web content ‘Author’ similarly creates web content like RSS Feed to ‘CROMA Electronics Worldwide’ – a

web site created using Web Page Composer, iView like KM upload to contribute to K-Bank, HTML page containing brief description of ‘Community site’ etc. using XML Editor Framework

SNAPSHOT: Displays list of web contents created by ‘Author’

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 7

Page 8: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Editor

Permission: ‘Full Control’ in the Web Pages folder. ‘Read’ permission in ‘Site Content’ folder. ‘Read’ permission in subordinate folders

Creates two web pages - ‘SAP Community’ and ‘Knowledge Bank’ in ‘Knowledge Bank’ Web Site

SNAPSHOT: ‘Editor’ can create folder, internal link to a document in a repository by specifying the target item, Site and upload a file to the repository from local system,

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 8

Page 9: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

3 Enable Versioning on ‘Knowledge Bank’ web Page Use:

If you activate versioning for a Web page, the system generates a new version each time you publish the Web page. You can then display and restore the last ten published versions of a Web page.

Prerequisites:

You (‘Department Head’ in current scenario) have write permission for the Web Pages

Procedure: 5) Go to the Web Pages folder of ‘Knowledge Bank’ Web site 6) Choose Details from the context menu of ‘Knowledge Bank’ Web page. 7) Choose settings -> Versioning 8) Choose Enable Versioning

SNAPSHOT: ‘Department Head’ enables Versioning of ‘Knowledge Bank’ Web page

Note: If you activate versioning in the Web Pages folder, new Web pages in that folder are created with active versioning by default.

The setting in the Web Pages folder only applies to Web pages that you create after making the setting. It has no effect on existing Web pages.

WYSIWYG page editor (Design Time-Page Editor tool)

Used for building and updating web pages. Content editor can create and modify

page layouts and publish the content

It supports:

1) Publishing process for web pages (staging)

2) In-place editing of web pages from the runtime perspective (switch to

design-time mode)

3) Displaying and Restoring Previous Published Versions Add (Drag-nd-Drop) web content/s on both the web pages using WYSIWYG page editor.

SNAPSHOT: ‘Editor’ can navigate through pcd, Web Content, Cross-Site Content, Public Documents, Recently Used, Common folders

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 9

Page 10: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Note: ‘Editor’ having ‘Read’ access on ‘Site Content’ folder, will be able to view the content in the Web Content Browser which are approved by ‘Department Head’. It displays current version of ‘Knowledge Bank’ Web page on the portal

‘Publish’ the web page. ‘Finish & Unlock’

SNAPSHOT: Design-time mode of ‘Knowledge Bank’ web page

User Admin

To enable portal user ‘Kapil Sharma’ (Visitor) to access ‘Knowledge Bank’ Web site, User Admin integrates the Web site into the navigation structure of a ‘SAP Community Role’ portal role

The administrator only has to do this once. If you later change the navigation and publish it again, the changes are visible in the portal immediately

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 10

Page 11: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

SNAPSHOT: ‘User Admin’ creates ‘SAP Community Role’. Set Entry Point = “true” of ‘Knowledge Bank’ sub-folder and External Connector property = ‘wpcnavigation:///wpccontent/Sites/Knowledge Bank/Site Navigation/navigation.wpc of ‘SAP Community Site’ sub-folder

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 11

Page 12: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

4 Displaying and Restoring Previous Published Versions Use

To display the last ten published versions of a Web page, choose Versions in the page editor. • SNAPSHOT: When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site ‘Knowledge Bank’ containing two web pages ‘SAP Community’ and ‘Knowledge Bank’ is displayed.

Note: It displays current version of ‘Knowledge Bank’ Web page on the portal

Prerequisites:

Content editor (‘Editor’ in current scenario) has write permission for the Web Pages

Procedure: 1) Go to the Web Pages folder of ‘Knowledge Bank’ Web site 2) Choose ‘Edit Page’ from the context menu of ‘Knowledge Bank’ Web page.

• SNAPSHOT: ‘Editor’ having Full Control on Web pages can delete, copy or move the Web pages

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 12

Page 13: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

3) To display the last ten published versions of a Web page, choose Versions in the page

editor.

• SNAPSHOT: Web Content Browser displays 6 published versions of ‘Knowledge Bank’ Web page. 6th version is current Web page version.

4) To restore a version of a Web page that was published previously, proceed as follows:

1) Click on ‘Click to View’ to preview the previously published Version 1 of ‘Knowledge Bank’ Web Page

• SNAPSHOT: Here ‘Editor’ has restored a Version 1 of a ‘Knowledge Bank’ Web page that was published previously.

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 13

Page 14: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

2) Choose Set as Current. The system creates a copy of the selected version with a new version number (Version 1 in this case). It is published in the portal immediately.

Difference between current version and previously published Version 1 is encircled in above snapshot 3) Choose Finish & Unlock.

Note: Do not choose Publish before closing the page editor. Doing so publishes the version that is currently visible in the page editor, thereby overwriting the previously published version again.

• SNAPSHOT: Displays Version 1 of Web page ‘Knowledge Bank’ to ‘Kapil Sharma’ (Visitor) on the portal

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 14

Page 15: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 15

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 15

Page 16: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

Related Content 1) Web Page Composer - a new Way to create and publish Web Pages in the Portal

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5924

2) Web Page Composer – Overview, Installation and Administration, Videos and Demos, Additional Information

https://www.sdn.sap.com/irj/sdn/nw-informationmanagement?rid=/webcontent/uuid/40321b10-8c42-2a10-3b89-9f67c9ff6065

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 16

Page 17: Creating and Publishing Web pages in the Portal using Web ... and...When ‘Kapil Sharma’ (Visitor) who is assigned ‘SAP Community Role’ role logs into the portal, a web site

Creating and Publishing Web pages in the Portal using Web Page Composer – Approval and Versioning features

SAP DEVELOPER NETWORK | sdn.sap.com BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com © 2008 SAP AG 17

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.

SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk.

SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.