Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slots #6021

Closed
sneridagh opened this issue May 16, 2024 · 1 comment
Closed

Slots #6021

sneridagh opened this issue May 16, 2024 · 1 comment

Comments

@sneridagh
Copy link
Member

PLIP (Plone Improvement Proposal)

Responsible Persons

Proposer: Víctor Fernández de Alba (@sneridagh)

Seconder: Timo Stollenwerk (@tisto)

Abstract

Add static defined in configuration (fill) slots that later can be filled with slots components.

Motivation

The "Viewlet" concept in Plone Classic is very powerful, and fits perfectly often to client requirements. The ability to inject a piece of content somewhere pre-defined in the page conditionally (per content or per route) is useful.

Assumptions

No assumptions.

Proposal & Implementation

We will add the ability to register a slot component defining:

  • Name of the slot this slot component belongs
  • Component being used
  • Predicates (optional, all predicates should be true for the slot component to show.

Deliverables

@plone/registry new API for registering/managing slots.
Documentation.

Risks

No risks.

Participants

Víctor Fernández de Alba

@sneridagh
Copy link
Member Author

Done in #5775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant