> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getlecker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Article_Entity_Content

> Trait for handling entities with associated articles in a content management system

The `Article_Entity_Content` trait provides functionality for managing entities that have associated articles. It defines a structure for displaying, filtering, and managing these entities.

## Main Method

### normals()

This method sets up the configuration for managing normal entities with associated articles.

Key actions:

1. Sets up group name and table type
2. Defines list and filter columns
3. Prepares select data for flags and colors
4. Defines input fields (columns) for the entity

## Configuration Properties

<ResponseField name="groupName" type="string" default="Articles">
  Defines the group name for these entities.
</ResponseField>

<ResponseField name="typeOfTable" type="constant" default="TABLE_ENTITY_WITH_ARTICLE">
  Specifies the type of table. Options include:

  * TABLE\_ENTITY\_WITH\_ARTICLE
  * TABLE\_NOARTICLE\_WITH\_ALL\_BUTTONS
  * TABLE\_NOARTICLE\_JUST\_CLONE
</ResponseField>

## Columns and Filters

### listColumns

An array defining the columns to be displayed in the list view. Includes:

* name
* entities\_tags\_relation
* \[table]\_tags\_relation
* id
* date\_added

### filterColumns

An array defining the columns that can be used for filtering. Similar to listColumns but may include additional fields like 'description'.

## Input Fields

The method defines a set of input fields (columns) for the entity. Key fields include:

<ResponseField name="id" type="hidden">
  The unique identifier for the entity.
</ResponseField>

<ResponseField name="date_added" type="hidden">
  The date the entity was added, automatically set to the current date and time.
</ResponseField>

<ResponseField name="name" type="text">
  The internal name of the entity.
</ResponseField>

<ResponseField name="entities_tags_relation" type="m_n_relation">
  Manages the many-to-many relationship between entities and tags.
</ResponseField>

<ResponseField name="[table]_tags_relation" type="m_n_relation">
  Manages the many-to-many relationship between the specific entity type and its tags.
</ResponseField>
