Status message

This project is not covered by the Drupal Security Team’s advisory policy. Security issues do not need to be privately reported for the Perplexity Provider project.

Error message

You need to log in or create an account to access this page.

6.11. Changing Content Display

Last updated on
14 April 2025

Goal

Make the content items more readable, accessible, and visibly attractive by reordering the fields, hiding labels, and tuning the output of the fields.

Site prerequisites

The Vendor content type must exist, it must have Main Image and Vendor URL fields, and your site must have at least one Vendor content item. See 「Adding a Content Type」, 「Adding Basic Fields to a Content Type」, and 「コンテンツアイテムの作成」.

Steps

  1. Find and view a Vendor content item you created in 「Adding Basic Fields to a Content Type」. Notice that there are several things that could be done to improve how the page looks:

    • The Main Image and Vendor URL fields should not have labels.
    • The order of the fields should be changed so that the image comes first.
    • The image should be smaller.
  2. To fix the first two problems, and update some additional settings, in the Manage administrative menu, navigate to Structure > Content types (admin/structure/types). Then click Manage display in the dropdown button for the Vendor content type.

    Manage display

  3. Under the Label column, select Hidden for Main image. Do the same for Vendor URL.

    Selecting main image title as hidden

  4. Click the gear for the Vendor URL field. Clear the Trim link text length setting. Links will no longer have a trim length. Check the Open link in new window checkbox. Now, when the link is clicked, it will open in a new browser window. Click Update.

    Link trim length

  5. Drag the cross arrows next to the field items to reorder as Main image, Body, Vendor URL, and Links.

    Changing order of fields

  6. Click Save.
  7. Find the Vendor content item from step 1 again, and verify that the updates have been made.
  8. Repeat similar steps to manage the display of the Recipe content type fields.

Expand your understanding

 

This page is generated from AsciiDoc source from the User Guide. To propose a change, edit the source and attach the file to a new issue in the User Guide project. PDF and e-book formats are available on the User Guide project page.

Source file: structure-content-display.asciidoc

Help improve this page

Page status: No known problems

You can: