You use this widget to display a single document on your page. You can choose a document from the already uploaded documents or upload a new document.
The Document link widget uses the sfMediaField directive and the sfDocumentSelector.
For more details, see Media field and Document selector.
After you place the Document link widget on your page, you must configure it to display a document.
To do this, click the Edit button in the upper-right corner of the widget.
In the Document window, you can choose whether to use a document in the library or upload a new document.
To select a document, you can:
Click the Done button.
In the right side of the window, select Upload document.
To upload a document, you can:
Next, click Upload.
To change the selected document, click Change document button and select or upload new document.
To edit document properties:
In case you created predefined styles, you can use the Style dropdown menu, which lists your predefined styles. For more information, see Adding predefined styles to widget.
If you are using multiple site management and the Libraries module uses data sources from more than one site, you must first choose the source from which you want to display documents or where a document, uploaded from your computer, is saved. To do this, use the dropdown menu in the upper-right corner of the window and select a provider.
For more information, see Multisite: Manage multiple sites.
If your site is multilingual and the page you are editing is synchronized with another translation, when editing the widget, you can see a Save to all translations button. Once you click the button, the current widget configuration is saved to all translations. Otherwise, the widget configuration is saved just for the current translation. Pages are still synchronized. Thus, you can synchronize pages and have different widget configurations, but you cannot have different widgets.
Back To Top