Types of widgets
There are 5 types of widgets that can be embedded in a website:
1. Search form
Your users can launch a search on your site to find publications. In the widget settings you can pre-filter the search to limit the scope to a certain set of publications.
2. Result of a search
Either you set yourself a query and the results will show on the widget or you let your users launch a search with the Search Form Widget and the results of their search will appear on the Result of a Search Widget. In the later case, you will simply link the Search Form Widget to the Result Widget
3. Selected publications
You select the publications that you want to display
4. Publication detail
The widget will only show one publication, usually with more metadata: either a publication that you have selected or the publication selected by a user coming from a Selected publications widgets or Result of a Search Widget
5. Organization detail (WhoIsWho)
This widget will show the organizational structure of a European Institution, and the persons' hierarchical position.
Steps to create a widget
1. Sign-in
You need to login on publications.europa.eu. You can create a new account or sign-in with: ECAS, facebook, twitter, Google+, Linkedin and LiveId.
2. Create a widget
Go to my-widgets and create a new widget. You will have the possibility to set the following elements:
- Name
Name of your widget
- Description
will not be displayed on your website
- Language policy
Multilingual: to let the widget detect autmatically the language of your page; Use only one language: to create a widget in only one EU language
- For Selected publications widget or Result of a search widget, you have to choose the metadata to display:
- Title
- Subtitle
- Abstract
- Date
- Authors
- Subjects
- Formats
- Thumbnail
3. Customize your widget
In the Appearance tab, you have several customization parameters to manage the look-and-feel of your widget. It can be aligned with your site.
4. Save your widget
Save your widget and copy/paste the embed code on your webpage.
5. Improve the widget
At any time you can modify the settings of your widget (on my-widgets). The modification will be visible on your site after the cache is cleared.