typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
427 stars 60 forks source link

Navbar page creation and file names #361

Open orionseye opened 1 year ago

orionseye commented 1 year ago

Hi there,

i love the way new pages are created and ordered via pre-fix numbers, or moved around in the file system. I need to make slight modifications and add additional pre-fix per 'space' since i use Typemill as documentation hub. Could you kindly advice how this is handled and how to extend such functionality? For example, a page would have the prefix 01-spaceA-whatever.md jQuery sortable.min.js handles the reordering, but which files are handling the renaming and reordering within the 'content' folder?

trendschau commented 1 year ago

It is done with vue here: https://github.com/typemill/typemill/blob/master/system/author/js/vue-navi.js#L257 and called in the template here https://github.com/typemill/typemill/blob/master/system/author/partials/editorNavi.twig#L47

Not sure if there is a way to hack into the logik without hacking into the source code. Maybe you find a way to inject or overwrite with js and a plugin somehow.