milestone_views ECA model¶
Source: eca.eca.milestone_views.yml
Purpose: Custom rendering for events and sessions when they appear inside a Views row tied to the milestone taxonomy.
Events the model listens to¶
| Plugin | Label |
|---|---|
eca_render:entity |
Render event or session |
Entities & contexts touched¶
fedms_eventcontent entityfedms_sessioncontent entitytaxonomy_term(vocabularyfedms_task_milestone)
Why it exists¶
The milestones taxonomy (fedms_task_milestone) drives the task
workflow (see task_api). Views like
views.view.milestones and views.view.milestone_tasks need
contextual rendering of related events and sessions — short
summaries, links into the right group, formatted dates from
field_date.
This model is what turns a generic Views row into a FedMS-aware row.
Editing notes / gotchas¶
- Renderer signatures change with view modes. If you add a new
view mode on
fedms_eventorfedms_session, you may need to extend this model to handle it explicitly. - The model only has one event today — keep changes scoped inside it rather than fanning out unless there is a real reason.
- The MTW (Milestone Task Widget) is closely related — see
fedms/components/tasks#28.
Related issues¶
fedms/components/tasks#28— MTW: Milestone-Task-Widget.fedms/support#64— Milestone task list shows only 10 results.
See also¶
- task_api — owns the milestone-driven task lifecycle.
- views_fields — sibling model that exposes computed fields to Views.
fedms_task.module— declaresviews.view.milestones,views.view.milestone_tasks.