convertFeedLinksToHoverMenu method: FeedFactory class
Syntax
convertFeedLinksToHoverMenu(&Links, Flat)
Description
Use this method to convert a feed Link collection to a HoverMenu object.
Parameters
| Parameter | Description |
|---|---|
|
&Links |
Specifies the feed links as a Link collection. |
|
Flat |
A Boolean value that indicates whether to organize links in subfolders based on their categories (False), or into a root folder if there are no categories (True). The default value is False. |
Returns
A HoverMenu object if successful.
Example
import PTFP_FEED:FeedFactory;
import PTFP_FEED:UTILITY:SearchRequest;
import PTFP_FEED:UTILITY:Collection;
import PTFP_FEED:UTILITY:HoverMenu;
Local PTFP_FEED:FeedFactory &thisFeedFactory = create PTFP_FEED:FeedFactory();
Local PTFP_FEED:UTILITY:Collection &results;
Local PTFP_FEED:UTILITY:SearchRequest &request;
Local PTFP_FEED:UTILITY:HoverMenu &menu;
&request = create PTFP_FEED:UTILITY:SearchRequest("SearchResults");
&request.PortalName = %Portal;
&results = &thisFeedFactory.getFeedLinks(&request);
&menu = &thisFeedFactory.convertFeedLinksToHoverMenu(&results, True);