cancel
Showing results for 
Search instead for 
Did you mean: 

publishing news

Former Member
0 Kudos

i want to restrict news entries displayed. That is a particular number of news items per page. i also want to knew how i can make customized layout set

Regards,

Right

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Right,

The HTML collection renderer allows you to display any folder content (files, folders, and links) in the style of a Web site. For example, you can display files as hyperlinks with any text you choose instead of the file names, and you can include image files directly in the explorer view.

Prerequisites

You have thought about how the HTML collection renderer is to depict a folder as a Web site.

Features

The HTML collection renderer is a static collection renderer that only renders the resources (files, folders, and links) that are entered into an HTML file. You specify this HTML file in the configuration of the HTML collection renderer.

(rndHtmlFilename) Specifies an HTML file that contains rendering information.

You can store the file (for example, meeting.html) in the folder that uses this HTML Collection Renderer. In this case, the specification in the input field is meeting.html.

You can also store the file in another folder (for example, /documents/html). The specification in the input field is then /documents/html/meeting.html.

Example

The folder Project is to be displayed using an HTML collection renderer. The following files are stored in the folder:

• Meeting.doc

• Members.jpg

When users open the folder, the link text Our meeting documentand the description of the document need to be displayed rather than the file name Meeting.doc. The image needs to be displayed beneath with a size of 320 x 240 pixels.

1. You create an HTML file and store it with the name meeting .html in the folder Project.

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;

charset=windows-1252">

<title>Meetings</title>

</head>

<body>

<a href="http://com.sap.cm/./Meeting.doc">Our meeting document</a>

<br>

<a href="http://com.sap.cm/./Meeting.doc?property=description"></a>

<br><br>

<img src="http://com.sap.cm/./Members.jpg" width=320 height=240>

<br>

<a href="http://com.sap.cm/./Members.jpg?property=description"></a>

</body>

</html>

2. You create an HTML collection renderer (my_HTML_Collection_Renderer). You configure the collection renderer and make the following settings:

HTML Filename = meeting.html

3. You create a layout set (my_LayoutSet). You configure the layout profile and make the following settings:

Collection Renderer = my_HTML_Collection_Renderer

4. You create a layout profile. You configure the layout profile and make the following settings:

Layout Set = my_LayoutSet

5. You assign the layout profile to the folder.

Hope This Helps,

Regards,

Shankar

Answers (5)

Answers (5)

Former Member
0 Kudos

Thank you for all your replies.

Former Member
0 Kudos

Thanks For all your answers. can explain HTML collection renderer settings, resource renderer settings

Former Member
0 Kudos

Hi Right,

1. To restrict news entries, you need to edit the Collection Grid Renderer Settings in

<b>Content Management > User Interface > Settings</b>. You need <b>System Admin</b> Role to access these settings. In the Rows column, the default value will be 5. You can change this to your desired value.

2. To customize a layout set, you can either duplicate an existing Layout Set or create a new Layout Set. you can check the desiresd <b>Collection Renderer</b> and <b>Resourse Renderers</b>, <b>Fallback Layout</b> and <b>Commands group</b>

Hope this helps,

Regards,

Shankar

Former Member
0 Kudos

Hi Right,

You can customize the layout set used for the news by making a copy of the NewsBrowser (read) or NewsExplorer (maintenance of news), which you can find in System Administration --> System Configuration --> Knowledge Management --> Content Management --> User Interface --> Settings --> Layoutset.

In the layoutset you can change the number of displayed news items by changing these setings in the collection renderer 'number of rows'. E.g. go to the NewsBrowser layoutset --> Collection Renderer 'NewsDisplayCollectionRenderer' --> Change the number of rows.

Hope this helps.

Regards,

Joost

Former Member
0 Kudos

Hi

Please go through this link for custmizing layouts

http://help.sap.com/saphelp_nw04/helpdata/en/d5/1b083e7623445ae10000000a11405a/frameset.htm

using XMl forms and its properties u can restrict news item displayed for that you need to use XMl Formbuilders properties

http://help.sap.com/saphelp_ep60sp2/helpdata/en/8f/fe743c74fa6449e10000000a11402f/content.htm

please do not forget to give points

with regards

subrato kundu