Content block widget

Overview

Use this widget to enter content directly in the widget, using the text editor and its features.

Place the widget on the page

You can place a Content block widget only inside a Section widget.
To do this, perform the following:

  1. Inside a column from the Section widget, click Add widget here
  2. Select the Content tab.
  3. Click the Content block widget.
    The widget is placed inside the selected column of the Section widget.
  4. Click Create content.

Enter content

Create the desired content. You can use the formatting options of the text editor. You can type and format text, insert images, documents, and symbols, and paste already formatted text and tables from Microsoft Word.

For more information, see Text editor.

Advanced widget settings

To open the advanced settings, in the upper-right corner of the Content block widget page, click Settings (Advanced settings)

  • In Label, you can enter a specific name for this widget.
    This name will be displayed in:
    • The page editor as a label for the widget
    • In the treeview with the page structure in the right pane of the page editor.
  • In CSS class, you can enter individual CSS class for the Content block widget.
  • Expand Display settings.
    In Margins, you can choose the margins between the text and the column where it is placed.
    Choose from the predefined values of none, small, medium, or large.
    In Paddings, you can configure the paddings that surround the content block.

Save your changes.

Share content

After you create the content of the Content block, you can share it. This way, it is stored in the Content blocks module and can be reused across other pages and other sites from your Sitefinity CMS instance.

A Content block that is not shared lives only on the page where it is created, while a shared Content block lives in the module and can live on many places.

Share a Content block

To share a Content block, perform the following:

  1. Open a block widget and enter its content.
  2. Save and exit the editing mode.
  3. In the New page editor, click the label of the Content block.
  4. Click More options - Share.
  5. Enter a name for the Content block.
    This name will be used to list the content block in the Content blocks module.

    The label of the Content block widget changes to CONTENT BLOCK SHARED.

  6. Click Share content.

Use a shared Contend block

To use an existing Content block on a page, perform the following:

  1. Open the page for editing.
  2. Place the Content block widget on the page.
  3. Click the label of the Content block.
  4. Click More options - Use shared.
  5. Select the content provider where the shared Content block belongs.
  6. Select the Content block that you want to use.
  7. Click Use selected.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Content list widget