6.11. Changing Content Display
Make the content items more readable, accessible, and visibly attractive by reordering the fields, hiding labels, and tuning the output of the fields.
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 「コンテンツアイテムの作成」.
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.
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.
Under the Label column, select Hidden for Main image. Do the same for Vendor URL.
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.
Drag the cross arrows next to the field items to reorder as Main image, Body, Vendor URL, and Links.
- Click Save.
- Find the Vendor content item from step 1 again, and verify that the updates have been made.
- Repeat similar steps to manage the display of the Recipe content type fields.
- Make the main image smaller. See 「Setting Up an Image Style」.
- If you do not see the effect of these changes in your site, you might need to clear the cache. See 「Clearing the Cache」.
Source file: structure-content-display.asciidoc
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion