Introduce #type 'links'

Created on 5 October 2011, over 13 years ago
Updated 21 February 2025, 3 months ago

Squeezed into #1260860-45: Rework language list admin user interface ...

Problem

  • Link lists are hardly extensible and alterable.

Example

  1. You have a table, with Operations column.
  2. You have one or more modules integrating with that table, adding operations.
  3. You have a renderable structure, but all the links get stacked into an odd #links property of a single element.
  4. Say hello to array_splice(), array_slice(), array_search(), array_pop(), and array_unshift()! Your only way to inject a link at a certain position.

Solution

  • Introduce #type 'links'.
    1. Renders sub-elements of #type 'link', 'markup', or whatnot first, and as usual. (respecting #weight, #ajax, and whatever else you want to do)
    2. Takes the rendered #children of each sub-element and turns them into items of an item list.
    3. Profit.
Feature request
Status

Postponed

Version

11.0 🔥

Component

theme system

Created by

🇩🇪Germany sun Karlsruhe

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024