Custom Content Types

Printer-friendly versionPrinter-friendly version

CREATING CUSTOM CONTENT TYPES

When you create content on your website, each item of content is categorized by a specific content type. The websites we provide are Drupal based and come with several standard content types (page, book page, event, etc.), with each content type containing the information and settings that make it suited for a specific purpose. At times, you may want to create entirely new content types for purposes specific to your store needs.

For the example below, we are creating a custom content type for ‘Articles’ which will include headline, date, body and image fields.

CREATE THE CUSTOM CONTENT TYPE

Navigate to Structure > Content Types > Add Content Type

  1. Enter the name of your new content type - Example: Articles
  2. Enter a description - Example: All news articles for the store
  3. Set the ‘Submission Form Settings’ - Give your title field a label (by default it will be ‘Title’) - Example: Headline
  4. Set your ‘Publishing Options’ to your preference
  5. Set ‘Display Settings’ - Example - as we plan to add our own date field, toggle off the ‘DIsplay author and date information’ setting
  6. Select your preferred ‘Menu Settings’
  7. Save and Add fields

ADD FIELDS

We’ve taken care of the ‘Headline’ in the previous step 3 and by default, we’ll have a ‘Body’ but we still want a field for Date and Image.

NOTE: Before adding a new field always check the drop-down menu for ‘Select an existing field’; if a field had been used for another content type, you can re-use it here.

  1. Add Existing Field - Example: Image: field_image (Image) - Save
  2. On the next page,  you can review and customize the configuration options as you prefer and then click ‘Save Settings’
  3. Add New Field - ‘Article Date’; Field Type: Date; Widget: Pop-up Calendar; Save
  4. On the next page, you can review and customize the configuration options as you prefer and then click ‘Save Field Settings’
  5. Again, on the next page, you will most likely leave all the settings to the default, but you can review and customize as you prefer and then click ‘Save Settings’
  6. Once back on the field settings page, you should now see the default fields along with the two you created and can ‘Save’

MANAGE THE DISPLAY

You will want to adjust the display settings so that your fields are displayed in the order you prefer and you can hide any unnecessary labels.

  1. Select the ‘Manage Display’ tab
  2. Using the ‘Four Pointed Arrow’ () drag and drop your fields into the order you prefer; for this example we want; Article Date, Body, and Image
  3. Make any changes to ‘Label’ and ‘Format’; for this example, we want to make the ‘Label’ for page and Article Date hidden
  4. Save

Repeat steps 2-4 for the ‘Teaser’

You have completed creating your new ‘Content Type’ and can begin using it to create new nodes.

CREATE YOUR ARTICLES NODE

Navigate to Content > Add Content > Articles

  1. Enter your headline - Example: New Partnership with Local Coffeehouse!
  2. Select your ‘Article Date and Time’
  3. Enter the details in the ‘Body’
  4. Select and Upload your ‘Image’
  5. Save

You have now created a node using your new content type ‘Articles’. It can be added to a menu, placed as a link, published to the front page, etc.

 

IndieCommerce Help Documents

 

About ABA

The American Booksellers Association, a national not-for-profit trade organization, works with booksellers and industry partners to ensure the success and profitability of independently owned book retailers, and to assist in expanding the community of the book.

Independent bookstores act as community anchors; they serve a unique role in promoting the open exchange of ideas, enriching the cultural life of communities, and creating economically vibrant neighborhoods.

Contact

PRESS INQUIRIES: [email protected]

INDIECOMMERCE: [email protected]

ALL OTHER INQUIRIES: [email protected]

 

 

Copyright 2024 American Booksellers Association. BookWeb is a registered trademark of ABA.
Privacy Policy, Cookie Policy, Accessibility Statement