Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A Collection of portal Development and configuration skills (1)

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1.1 how to leave a back door for yourself to enter the management interface 1.1.1 problem description

In the theme and skin development process, accidentally deleted the "management" link, can no longer enter the Portal management interface. This problem is actually quite serious, if you do not enter the Portal management interface, you will not be able to uninstall the installed themes and skins, and the development work cannot continue.

1.1.2 solution

There are two ways to solve this problem.

The first way: leave a back door for yourself. The implementation method is the way to create a URL mapping mentioned in the previous section, that is, create a new URL mapping of admin, and then map the URL of admin to the Portal management interface, so that in case the "management" link is damaged, you can enter: http://hostname:10040/wps/ myportal/admin into the Portal management interface directly in the address bar after logging into the system. This is a back door for yourself. For specific steps, you can refer to the process of creating a URL map in the previous section.

The second method: this method is actually very simple, is to open a few more pages, one of which stays in the Portal management interface, and to ensure that the page's session data is valid (that is, Session does not expire). Use other pages when debugging theme effects so that in case the theme is damaged, you can immediately switch to the Portal administration interface and remove the damaged theme that you just added.

1.2 get login user information 1.2.1 problem description

Get the login user object and take out the user name, registered mailbox and other user information, which is often used in theme and skin development as well as Portlet development. How do I get the user information? We do this by configuring + coding.

1.2.2 solution

The first method: tag + code method.

First modify the Default.jsp file in the IBM/WebSphere/wp_profile/installedApps/ [cellname] / wps.ear/wps.war/themes/html/ ThemeName directory:

Will be changed to.

Then import IBM User's JAR package, which is named wp.user.api.jar and can be found under IBM/WebSphere/Portal Server/base/wp.user.api/shared/app.

Add the following code:

The second method is to introduce the user class package directly into Default.jsp and initialize it in the theme.

The reference code is as follows:

1.3 Personalized Portlet add Dashboard

1.3.1 problem description

Under normal circumstances, we will use Portlet to add classes to work as follows.

Log in to the Portal 6.1 system as wpsadmin, and click the "expand selection Board" button in the upper right corner of the page, as shown in figure 1-10.

Figure 1-10 Click the "expand selection Board" button

You can see that the Portlet selection board has been successfully initialized, as shown in figure 1-11, which is the legendary Portlet selection board.

Figure 1-11 legendary Portlet selection board

By dragging the Portlet on the selection board to the left page, you can customize the Portlet directly to the page and assign it to users with relevant permissions, as shown in figure 1-12.

Figure 1-12 allows you to customize Portlet directly to the page

Click to the right of the classification options entry in the Portlet list to see all the Portlet under that category, as shown in figure 1-13.

At this point, someone may ask the question: these categories are default and difficult to identify, can they be classified according to my category, and add the Portlet I want to provide to users to the corresponding category?

The answer is yes. Here are the solutions

Figure 1-13 Classification of Portlet

1.3.2 solution

Click the triangle button to the right of the Portlet option and select configuration, as shown in figure 1-14.

Figure 1-14 Select "configuration"

Click the triangle button to the right of each category, select "Delete Category", and the category is deleted, as shown in figure 1-15.

Select rename Category, and you can also rename this category.

Figure 1-15 allows you to delete unwanted categories

Click the triangle button to the right of configuration and select create New Category to create a new category, as shown in figure 1-16.

Figure 1-16 allows you to create the categories you really need

Click the triangle button to the right of the created new category and select "add Portlet" to assign the Portlet that belongs to the category, as shown in figure 1-17.

Figure 1-17 add Portlet to the newly created category

If your category is messed up, you can choose the triangle button on the right side of the configuration and select "reset to default", then all your personalized categories will be deleted and the system will return to the default state when it was just installed, as shown in figure 1-18.

Figure 1-18 Select "reset to default"

The introduction here is relatively simple, and there are many other uses that you can try.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report