The Generic Item Widget is a flexible widget which can work with any content type (list structure) to retrieve data for a single list item that is then passed to a View to render on the site. The following is just one example of a component found in the OOTB Digital Workplace which uses the Generic Item Widget.
Note: The Generic Item Widget is often used to display News or Announcement Items on a page using the Friendly URL functionality. For more details on setting up the Friendly URL capability see Creating and Managing Friendly URLs
N/A
isroot | If false, the list which contains the data for this instance is on the current site.
If true, the list which contains the data is on the root of the Site Collection. |
selectfields | The data fields (columns) from the SharePoint list that the widget should retrieve for use in this instance.
For this example, the selectfields = AnnouncementTitle,Image,Start_x0020_Date,Body |
list name | Name of the SharePoint list that contains the data to be displayed for this instance. |
callbackmethod | The callbackmethod is set by the developer of the widget. For this use, the method to specify is “ShowNewsDetail” |
idortitle | In this field put in either the content's title or the id number (you can find the id at the end of its URL when you edit the content in the Content App) |
cache interval | Sets the time (in secs) that the data should be saved in the local browser cache of the current user.
0 = do not cache the data for this widget -1 = use the default caching strategy set in the Digital Workplace configuration = cache for specified time (secs) |
View Name: Blank View Description: Displays content in a detail item view. The view is blank because only shows content when being used by another widget.
View Preview: