Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Multiple models (create-x.md, create-y.md) for entries #244

Open
victoic opened this issue Oct 6, 2019 · 0 comments
Open

Multiple models (create-x.md, create-y.md) for entries #244

victoic opened this issue Oct 6, 2019 · 0 comments

Comments

@victoic
Copy link

victoic commented Oct 6, 2019

I'm trying to create models for different types of entries in a wiki.
I've made the .md files and added the buttons in the navbar, for example:

create-lugar.md:

# {TITLE}
# Informações
`Tipo`  
`Localização` 
`Sub Localizações` 
`Organização Dominante` `

create-pessoa.md:

# {TITLE}
# Informações
`Nascimento` 
`Local de Nascimento` 
`Sexo Biológico` 
`Olhos` 
`Cabelo` 
`Altura` 
`Peso` 

Those are entry models that highly repeat information, so it would be helpfull to have some set data by default.

But I can't see to find how to make each button call a different .md file. I can not find how is the /create/* route called so I pass an extra variable to it or something similar to differentiate the create call from each button.

Is this viable? Or is the framework made to only have one type of entry?

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

No branches or pull requests

1 participant