SAP Portal Google Optimization
Adding Meta - tag And Title to Framework
Portal is based on the meta-tag and title to the Framework source code to be included steps performed are as follows.
• Meta - Tag and Title "to add com.sap.portal.runtime.system.connection_api.jar" Archive file in the "meta.addElement ();" and "htmlDocument.setTitle ();" java functions are used. This function is an area on the framework of the Framework will be placed in order to operate. Java functions a blank page (Page) and placing the structure and framework to solve the problem.
• A page creation process into consideration is to be taken, each page created during a customLayout structure kullanlır this customlayout meta - to add a tag to use for functions suited is a field so that every page is loaded function again, the meta - and the title tag at a time desired loaded.
• This operation system for the existing on CustomLayout is used. (System Administration Support --> Portal Runtime Deployment -->Portalapps Browse Directory located under CustomLayout) layout'un new to be created in the system with the layouts with the same name not to be considered is a point that the new building, created a name that is installed in the structure and standards will crush the old structure structures are lost. Picture - 1, the area located on the portal to be used CostumLayout'un indicated.
Image - 1 "is located on the portal area CostumLayout'un"
Portal is based on the meta-tag and title to the Framework source code to be included steps performed are as follows.
• Meta - Tag and Title "to add com.sap.portal.runtime.system.connection_api.jar" Archive file in the "meta.addElement ();" and "htmlDocument.setTitle ();" java functions are used. This function is an area on the framework of the Framework will be placed in order to operate. Java functions a blank page (Page) and placing the structure and framework to solve the problem.
• A page creation process into consideration is to be taken, each page created during a customLayout structure kullanlır this customlayout meta - to add a tag to use for functions suited is a field so that every page is loaded function again, the meta - and the title tag at a time desired loaded.
• This operation system for the existing on CustomLayout is used. (System Administration Support --> Portal Runtime Deployment -->Portalapps Browse Directory located under CustomLayout) layout'un new to be created in the system with the layouts with the same name not to be considered is a point that the new building, created a name that is installed in the structure and standards will crush the old structure structures are lost. Picture - 1, the area located on the portal to be used CostumLayout'un indicated.
• The layout will be processed on the new structure began to be opened with Netweaver. This structure contains features in the portal "portalapp.xml" has a file named. Picture - 2 portalapp.xml file shows. This file structure is to be examined;
Picture - 2 "Portalapp.xml "
... syntax;
Created on the system or the layout structure of the new iView is the area of the system was introduced, to be constituted within the syntax required for each new structure "" should be added in the form of a line of code. This line of code will be created within the structure determines the properties of the code are available. Eg
Used for building a new iView ComponentType feature at the new layout is used for ComponentType property; is in the form in this area any given instance is created on the portal features of the structure can be observed and can be used.
Meta - Tag and Title in relation to the process of adding; java functions mentioned above (the "meta.addElement ();" and "htmlDocument.setTitle studies are needed during the installation ();") page, these requirements created structure" portalapp.xml " file additional "" line will be abolished with, the actions of this line of code; layout'un work created during runtime with his wife as a term to indicate the presence of triggering a jsp page and found that this file is transferred to the location system. These features after the completion of the structure created in the portal to use this file has the attributes of a structure must be created this process for a ivew files - 3, as shown, create a new iView process has been selected to screen the options "Create an iView from a portal component contained in a Deployed portal archive (PAR file) "is performed by selecting in this process after the completion of the forward button to be selected with the desired structure of the portal will have been completed.
Image - 3 "Creating instances of the created iView structure"
• Create a process that occurs layout'un page to use the system must be in standard form, this situation was created to provide layout'un "object is a template" feature "yes" needs to be changed. Upon completion of this process of creating a new page layout structure will be available on a ready to use.
Framework will be placed into the page (Page) creation;
• requested the file on Layoutun be created by clicking the right button of mouse; Page --> new election is required.
Created on the system or the layout structure of the new iView is the area of the system was introduced, to be constituted within the syntax required for each new structure "
Used for building a new iView ComponentType feature
Meta - Tag and Title in relation to the process of adding; java functions mentioned above (the "meta.addElement ();" and "htmlDocument.setTitle studies are needed during the installation ();") page, these requirements created structure" portalapp.xml " file additional "
AddMeta.jsp page;
That operate simultaneously with Layout'un work and java codes where this page is to be reviewed;
At the top of the page html code in the structure of the Framework and the functions are connected wound to be müdale java classes can be observed, they are defined as follows;
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocument"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlMeta"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlTitle"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocType"%>
In the use of this method to work one of the key points of the functions is to recognize the work area, this system currently located on the clients (on request) and servers (response) is achieved with determination, this process was carried out in lines of code are given below;
PortalNode portalNode = componentRequest.getNode (). GetPortalNode ();
IPortalResponse portalResponse =
(IPortalResponse) portalNode.getValue (
IPortalResponse.class.getName ());
HtmlDocument htmlDocument = null;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
the above line of code is to be more open;
First, the systems currently available on the request and response are determined, the request and response through the system is transferred to the new request, if the system currently located on the answering users requested a position to respond to requests action starts. This process is provided with the following line of code;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
After establishing the conditions on the system "meta.addElement ();" and "htmlDocument.setTitle ();" functions can be used, and this process is the following line of code;
HtmlMeta meta = htmlDocument.getMeta ();
meta.addElement ( "\ r \ n ");
meta.addElement ( "\ r \ n ");
htmlDocument.setMeta (meta);
HtmlTitle ttl = new HtmlTitle ( "Title");
htmlDocument.setTitle (general);
After finishing the design of the page AddMeta.jsp to be done on the process instance created CustomLayout structure is the creation of the portal.
Creating new CustomLayout
• create a requested file Layoutun right-clicking the mouse on; layout--> new election is required.
• Selecting projects Netweaver'le created;
During this process created and portalapp.xml file created Netweaver'de a layout of the structure can be viewed projects oluduğunun transferred from the field to create the desired type is selected;

That operate simultaneously with Layout'un work and java codes where this page is to be reviewed;
At the top of the page html code in the structure of the Framework and the functions are connected wound to be müdale java classes can be observed, they are defined as follows;
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocument"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlMeta"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlTitle"%>
<% @ Page import = "com.sapportals.portal.prt.util.html.HtmlDocType"%>
In the use of this method to work one of the key points of the functions is to recognize the work area, this system currently located on the clients (on request) and servers (response) is achieved with determination, this process was carried out in lines of code are given below;
PortalNode portalNode = componentRequest.getNode (). GetPortalNode ();
IPortalResponse portalResponse =
(IPortalResponse) portalNode.getValue (
IPortalResponse.class.getName ());
HtmlDocument htmlDocument = null;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
the above line of code is to be more open;
First, the systems currently available on the request and response are determined, the request and response through the system is transferred to the new request, if the system currently located on the answering users requested a position to respond to requests action starts. This process is provided with the following line of code;
if (portalResponse instanceof PortalHtmlResponse) (
PortalHtmlResponse htmlResponse =
(PortalHtmlResponse) portalResponse;
htmlDocument = htmlResponse.getHtmlDocument ();
)
After establishing the conditions on the system "meta.addElement ();" and "htmlDocument.setTitle ();" functions can be used, and this process is the following line of code;
HtmlMeta meta = htmlDocument.getMeta ();
meta.addElement ( "\ r \ n ");
meta.addElement ( "\ r \ n ");
htmlDocument.setMeta (meta);
HtmlTitle ttl = new HtmlTitle ( "Title");
htmlDocument.setTitle (general);
After finishing the design of the page AddMeta.jsp to be done on the process instance created CustomLayout structure is the creation of the portal.
Creating new CustomLayout
• create a requested file Layoutun right-clicking the mouse on; layout--> new election is required.
• Selecting projects Netweaver'le created;
During this process created and portalapp.xml file created Netweaver'de a layout of the structure can be viewed projects oluduğunun transferred from the field to create the desired type is selected;
• Select the desired component exits from the screen be constituted • whether the creation process is completed.
Framework will be placed into the page (Page) creation;
• requested the file on Layoutun be created by clicking the right button of mouse; Page --> new election is required.
• Page's name and then determination id'sinin forward button to be used with the layout structure is determined in the field would have come, this process is being carried layout created by default layouts may appear, this case layout'un "Is object template" feature "yes" can be done has been achieved, the list will be used The layout is selected and then this layout is added to the structure of the generated pages.
Generated pages on the framework and the inclusion of transactions to be completed;
• intended use of the generated pages to be included on the framework on the Framework needs to be opened by double-clicking Framework.
• Framework After opening the desired inclusion on the page by clicking the right mouse button "Add page to framework" option should be selected, which can be displayed on the framework of this page visibility with the opening process is completed.
Generated pages on the framework and the inclusion of transactions to be completed;
• intended use of the generated pages to be included on the framework on the Framework needs to be opened by double-clicking Framework.
• Framework After opening the desired inclusion on the page by clicking the right mouse button "Add page to framework" option should be selected, which can be displayed on the framework of this page visibility with the opening process is completed.

Hiç yorum yok:
Yorum Gönder