This is used in the following recipes:
Name |
Comments |
Author information |
---|---|---|
Product |
None |
None |
Field |
Type |
Format |
---|---|---|
Product image ( |
Image |
Image exhibit |
Field |
Type |
---|---|
Product price ( |
Decimal |
Navigate to
admin/structure/types
and click +Add content type.Enter
Product
into the Name textbox.Enter
Products for sale
in the Description textbox.Click the Display settings vertical tab.
Uncheck the Display author and date information checkbox.
Click the Comment settings vertical tab.
Select Hidden from the Default comment setting for new content select box.
Click the Save and add fields button.
Under Add new field, enter
Product image
into the Label textbox.Select Image from the Type of data to store select box.
Click the Save button.
Click the Save field settings button.
Click the Save settings button.
Under Add new field, enter
Product price
into the Label textbox.Select Decimal from the Type of data to store select box.
Click the Save button.
Click the Save field settings button.
Enter
$
in the Prefix textbox, or another currency identifier in the Prefix or Suffix textboxes.Click the Save settings button.
Click the Manage display tab.
Select
<hidden>
from the LABEL (column) select box for the Product image field (row).Select Medium (220x220) from the Image style (column) select box.
Select <Hidden> from the LABEL (column) select box for the Product price field (row).
Select Default from the FORMAT (column) select box for Product price (row).
Click the CUSTOM DISPLAY SETTINGS link.
Check the Full content checkbox.
Click the Teaser tab at the top of the window.
Select <Hidden> from the LABEL (column) select box for the Product image field (row).
Select Image from the FORMAT (column) select box for the same row.
Click the settings gear icon in the same row.
Select Medium (220x220) from the Image style (column) select box.
Select <hidden> from the LABEL (column) select box for the Product price field (row).
Select Default from the FORMAT (column) select box for Product price (row).
Rearrange the fields by dragging so that the order is Product image, Product price, and Body.
Click the Save button.