crecode.com

Customizing CMS and WCM in .NET Generating Code39 in .NET Customizing CMS and WCM




How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Customizing CMS and WCM using barcode drawer for .net control to generate, create barcode 3 of 9 image in .net applications. Microsoft Office Official Website The web sites www.bookpub Visual Studio .NET Code 3 of 9 street.

com and www.bookpubworkshop.com are made up of many pages.

Each page contains a bunch of content either the basic assets (for example, images, documents, videos, games, slideshows, video queues, and playlists), or complex articles (for example, journal articles, blog entries, forum topics, and Wiki articles). CMS includes a set of portlets Document Library and Image Gallery to aggregate and manage images and documents. WCM includes the Web Content portlet to create and publish articles, as well as article templates and structures; the Web Content Display portlet to publish an article; the Web Content List portlet to display a dynamic list of all journal articles for a given community; the Asset Publisher portlet to publish any piece of content; nested portlets to drag and drop portlets into other portlets; XSL content, and much more.

This chapter will first discuss how to dynamically manage the terms of use with a journal article. Next, it will address how to construct featured content with article structure and article template. Accordingly, the extension of the Web Content List portlet will be introduced to display articles that have a different look and feel.

This chapter will especially present the way to build articles with multiple image icons, polls, related content, recently added content, and so on. Finally, it will discuss how to use and extend CMS and WCM..

This material is copyrigh t and is licensed for the sole use by Richard Ostheimer on 20th June 2009 2205 hilda ave., , missoula, , 59801. Customizing CMS and WCM By the end of this chapte r, you will have learned how to: Manage the Terms of Use portal dynamically Construct featured content Customize the Web Content List portlet Customize the Asset Publisher portlet Build dynamic articles with recently added content and related content Build dynamic articles with polls Extend CMS and WCM. Managing Te ms f Use dynamically First of all, let"s consi der simple customization of Terms of Use. Liferay portal provides the ability to force all users to accept some terms of use text before using the portal for the first time. Default text is included within the portal.

But in most of the installations where this feature is used, this text will need to be customized. First, we will discuss how to customize the Terms of Use page statically change the JSP file directly. Then we will address how to customize it dynamically represent this page as an article (web content) and change it in runtime.

. C s mizing s a ic Te ms f Use Let"s do a simple customi zation on top of the portal. When a user logs in to the portal for the first time, the Terms of Use page is displayed as shown in the following screenshot. The user may not log in until the I Agree button is clicked.

Suppose that you want to change the Terms of Use page with the content: Welcome to our site . We maintain this web site as a service to our members ("Book Street & Workshop")..

[ 228 ]. This material is copyrigh t and is licensed for the sole use by Richard Ostheimer on 20th June 2009 2205 hilda ave., , missoula, , 59801. 7 . In order to customize the Terms of Use page, we need to override it in Ext in the following manner: 1. Create a folder portal under the /ext/ext-web/docroot/html/ portal. 2.

Copy the terms_of_use.jsp file from the /portal/portal-web/docroot/ html/portal/ folder to the /ext/ext-web/docroot/html/portal folder. 3.

Modify this file between <c:otherwise> and </c:otherwise> to Welcome to our site. We maintain this web site as a service to our members ("Book Street & Workshop"), and save it. You have modified the Terms of Use page successfully.

Similarly, you can change a lot of pages in the portal, for example change_password.jsp, error.jsp, login_ create_account.

jsp, login_forgot_password.jsp, login.jsp, portlet_error.

jsp, and so on. You can find these possible pages that you can modify under /portal/portal-web/docroot/html/portal. Obviously, the portal allows us to force all users to accept the terms of use before using the portal for the first time.

Default text is included with the portal, and this text may need to be customized, which is differs from case to case. A simple way to change this text is to modify the JSP file as stated above. Note that this is probably good only for simple sites.

For more complex sites, it is required to allow changing the text of the Terms of Use page dynamically. Using a journal article would be the best choice when the terms of use change frequently, and moreover, there is a need to have its text translated to several languages..

Copyright © crecode.com . All rights reserved.