[FEATURE-REQUEST] Custom page link placement
- Lingua principale
- Elixir
- Stelle
- 1.4k
- Fork
- 171
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Amazing job on the custom page [https://github.com/aesmail/kaffy/issues/47], finally had a chance to try it out.
I feel that if a custom page is created within a resource it should appear inside the left menu of that resource.
```elixir
defmodule ChitChatWeb.RoomAdmin do
alias ChitChat.Accounts
def custom_pages(_schema, _conn) do
[
%{
slug: "my-own-thing",
name: "Secret Place",
view: ChitChatWeb.RoomView,
template: "custom-page.html",
assigns: [custom_message: "one two three"], # optional
order: 2 # optional
}
]
end
```
In other words if I create a custom page within `ChitChatWeb.RoomAdmin`, the link `Secret Place` should appear in Room section.

Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.