Home

 

Add popular bookmarks to a Web page

Embed the most popular bookmarks into your Web pages. Your Web application can use this resource to enable users to see and navigate to the most popular bookmarks embedded on your Web page. This lists the bookmarks that multiple users have bookmarked recently. It captures the bookmarks that are displayed in the Most Bookmarked in the last 30 days section of the Popular tab of the Bookmarks feature.

The administrator can change the number of days from 30 to something different. To find out how to add all bookmarks to a page, retrieve the resources described in Adding bookmarks to a Web page and Adding a list of bookmarks to a Web page.


Atom API request details

Resource Description
/lisnippet/popular Retrieves popular bookmarks. Returns JavaScriptâ„¢ code that emits XHTML containing the search results, with each result specified in a <li> element.
/snippet/popular Retrieves popular bookmarks. Returns JavaScript code that emits XHTML containing the search results, with each result specified in a <div> element.

Search can only find bookmarks that the indexer has processed. The indexing interval is stored in a configuration property that your administrator can configure. See Managing search and index operations in the Administering Bookmarks section of the Lotus Connections information center for more details. Use one or more of the input parameters to narrow the search. Separate multiple parameters with an ampersand (&).


Input parameters

Parameter Description
lang Language code. Language of the strings in the output. If not specified, the first matching browser language is used, if available. The server then redirects the request to add this parameter to the URL. Specify this parameter to avoid a redirect.
page Page number. Specifies the page to be returned. Default is 1.
ps Page size. Specifies the number of entries to return per page.

 

Example

You can add code similar to the HTML used in this example to display the popular bookmarks returned by either the /snippet/popular or /lisnippet/popular resource in a Web page.

You can change the style of bookmarks returned by the /snippet/popular resource by applying a style defined in the cascading style sheet to them.

You can change the style of list of bookmarks returned by the /lisnippet/popular resource by applying a style defined in the cascading style sheet to it.


Extending bookmarks

 

Related tasks

Manage search and index operations

 

Related reference


Add a set of bookmarks to a Web page

Add a list of bookmarks to a Web page


+

Search Tips   |   Advanced Search