Skip to content

Conversation

@mateus-po
Copy link
Contributor

Purpose

The idea is to allow extensions register custom fields or fragments in Admin Panel forms without using Deface. This PR proposes an implementation for such feature. It is a concept draft, the actual implementation might change in the future.

Registering a partial

For a partial to be rendered via this method:

<%= render_matching pattern: 'products/edit', locals: { f: f }  %>

The partial must be located in app/views/spree/admin/extension/.../products/edit extension directory. The ... means that there can be any directories along the way, preferably there would be a directory with a unique name (e.g. extension name) so that there are no conflicts between partials.

@mateus-po mateus-po closed this Feb 27, 2024
@mateus-po mateus-po reopened this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants