Drupal Radix Theme
  • Introduction
    • Overview & Support
  • Installation
    • Requirements
    • Getting Started
    • Setup with ddev
  • Understanding Radix
    • Individual files and directories
    • Bootstrap Build
    • Bootswatch
  • Working with the components
    • Components: Intro
    • Components: A deep dive
    • An example component
    • The drupal-radix-cli
    • Copy and modify a component
  • Components
    • Accordion
    • Alerts
    • Badge
    • Block
    • Buttons
    • Button Group
    • Breadcrumb
    • Card
    • Carousel
    • Close button
    • Comment
    • Collapse
    • Details
    • Dropdown menu
    • Field
    • Field Comment
    • Fieldset
    • Figure
    • Form
    • Form: Element
    • Form Element Label
    • Form Element: Radio Checkbox
    • Heading
    • HTML
    • Image
    • Input
    • List group
    • Local Tasks
    • Media
    • Modal
    • Nav
    • Nav Item
    • Navbar
    • Navbar Brand
    • Node
    • Offcanvas
    • Page
    • Page: Content
    • Page: Footer
    • Page: Navigation
    • Page: Title
    • Pagination
    • Progress
    • Radios
    • Region
    • Select
    • Spinners
    • Table
    • Taxonomy
    • Textarea
    • Toasts
    • Tooltips
    • User
    • Views: view
    • Views: view--grid
    • Views: view--table
    • Views: view--unformatted
  • Misc
    • Migration and upgrading
    • Roadmap
    • Credits & Contributions
Powered by GitBook
On this page
  • Key Features
  • Customization Options
  • Usage

Was this helpful?

  1. Components

Node

A template for rendering a Node in Drupal.

Key Features

  • Promotion and Stickiness Indicators: Includes class-based indicators for nodes that are promoted or sticky.

  • Publication Status: Marks unpublished nodes with a specific class for styling or visibility control.

  • Dynamic Class Application: Automatically applies classes based on node characteristics like content type and view mode.

  • Content Type and View Mode Specific Styling: Facilitates unique styling for different content types and view modes.

Customization Options

  • Content Type-Based Styling: Customize the appearance of nodes based on their content type.

  • View Mode Adaptation: Adjust styling for different view modes like 'full', 'teaser', etc.

  • Status Indicators: Style nodes differently based on whether they are promoted, sticky, or unpublished.

Usage

{% include 'radix:node' with {
  node: node_object,
  title_attributes: title_attributes,
  author_attributes: author_attributes,
  content_attributes: content_attributes,
  content: node_content,
  label: node_label,
  url: node_url,
  display_submitted: true,
  author_name: author_name,
  date: published_date
} %}
PreviousNavbar BrandNextOffcanvas

Last updated 1 year ago

Was this helpful?