New

This page has been updated to show the new 'Rich body field' in tables.

Tables

This advice applies to England. See advice for See advice for Northern Ireland, See advice for Scotland, See advice for Wales

Tables are a type of entry. An entry is a piece of content that can be reused in different places.

To add a table, first make sure your cursor is in the right place in the advice collection or entry you want to add it to. Click ‘Embed’ in the toolbar, then click ‘Entry’ on the drop down.

Image of the 'Body' field. The 'Embed' button has been clicked, and a drop down menu shows 'Entry', 'Inline entry' and 'Asset'.

This will open the ‘Add existing entry’ box. You can now either:

  • create a new table

  • find and add a table that already exists in Contentful

Creating a new table

Click ‘Create new entry’ in the top right of the box, scroll down the drop down list and click ‘Table’.

Image of the 'Add existing entry' box. The 'Create new entry' button has been clicked, and there's a drop down menu with 'Table' highlighted.

Finding and adding an existing table

To find an existing table, click the blue box next to where it says 'Content type' and select 'Table'. Now search for the name of the table by typing in the search bar.

The table should appear in the list beneath the search bar. Click on it to add it.

Image of the 'Add existing entry' box. The blue box next to where it says 'Content type' has been set to 'Table'. Example text has been entered in the search bar. Available tables have appeared below the search bar.

The table will appear as a box in the advice collection or entry you're working on.

Image of a table as it appears while editing an advice collection or entry.

Editing an existing table

You can move a table to a different position by either:

  • cutting and pasting it

  • clicking and dragging it

If you need to edit a table, click on the 3 dots in the top right, then click 'Edit' in the drop down menu. Remember that editing the table will change it everywhere it appears on the site.

Image of an example table. The 3 dots (actions) button at the top right has been clicked, and a drop down menu is visible. It includes the options 'Edit' and 'Remove'.

The content of the table

You can add content or make changes in the table's fields.

Table name

This won't appear on the site, but people will be able to search for the table by name in Contentful.

Image of the 'Table name' field with example text.

The name should be a summary of the table content, for example 'Working Tax Credit rates'.

Country

Choose which countries can see the table by ticking the boxes.

Image of the 'Audience' settings, with 'England' and 'Wales' ticked.

The audience settings for the table don't have to match the advice collection or entry you're adding it to. For example, you can include an England-only table on an advice collection that is visible in both England and Wales. It will only appear for users in England.

Rich text body

This is where you add and edit the contents of the table.

The field called 'Body' should no longer be used - this will be removed soon.

Image of the 'Rich text body' field. The field shown is blank.

Click the 'Table' icon to create a new table.

Image showing he 'Table' icon highlighted with a red circle.

The table will have 2 columns and 2 rows - the top row is the header.

Image shows a new table. It has 2 columns and 2 rows. The top row is grey and is the header.

You can add new columns or rows with the drop-down arrow in each cell. You can also delete rows and columns.

Image showing the menu to add or remove columns and rows.

Adding content to a table

You can add text to a table and format it in the following ways:

  • make text bold

  • add links

  • add paragraphs

Highlight the text and click the 'Bold' icon to make it bold.

Image of text in a table highlighted and in bold.

Highlight the text and click the 'Hyperlink' icon to add a link to a URL or an entry in Contentful, for example to an advice collection.

Image showing 'Insert hyperlink' option in a table.

To add paragraphs in the table cells, put your cursor where you want the new paragraph to start and press 'Enter' on your keyboard.

Image showing a table with paragraphs.

Embedding entries in a table

You can also embed the following entries into a table:

  • call costs

  • content patterns

  • monetary amounts

Click the '+ Embed' button then 'Inline entry' to add an existing or new entry.

Image showing the '+ Embed' button and 'Inline entry' button.

In the example below a monetary amount entry has been embedded into the table cell.

Image showing monetary amount entry embedded in a table cell.

Version information

This is where you explain what changes you're making. If you're changing existing content, delete anything that's already in the field first.

Image of the 'Version information' field with the example text 'New table as part of the Contentful user guide project'.

Try to write the version information so it will make sense to someone who looks at it later without knowing the context. For example:

  • say if it's a new table, or briefly explain what changes you've made

  • if the work is part of a project, include the project name

  • if the change is a maintenance update, include a link to the maintenance Trello ticket

Publishing a table

To publish the table, click the 'Publish' button on the right of the screen.

Image of the 'Publish' button on the right of the screen.

If it's a new table, you'll also need to publish the changes to the advice collection or entry it will appear on.

Find out about other ways to publish content items, including scheduling publication and publishing an advice collection and entries at the same time.

At the moment, you must tell the Content Platform team every time you make a change to the content in Contentful. This lets them make the same change in EPiServer. Tell the Content Platform team about changes using the request form.

Help us improve our website

Take 3 minutes to tell us if you found what you needed on our website. Your feedback will help us give millions of people the information they need.