aesmail / aesmail/kaffy

[FEATURE-REQUEST] Custom page link placement

Aperta
#79 1 commento 0 reazioni 1 assegnatario Rivendicata da @aesmail Vedi su GitHub
enhancement
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.

![image](https://user-images.githubusercontent.com/53455/83856663-334e9e00-a71a-11ea-9d6f-331c406a0a66.png)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.