Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 29, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

### Description
This PR adds a new `parse` customisation option for the file name field
https://tina.io/docs/extending-tina/filename-customization. This method
using the `parse` method developers can enforce file name conventions
(e.g. kebab case, snake case etc.) at the collection level. The callback
function will be run each time the file name changes in the form.

### Relevant Issue

- #6352 

### Important Notes
- The `parse` method will run **after** the **slugify** method is run
(if both are provided)
- The parser will not be run retroactively for existing files


### TODO
- [x] Check to see if @wicksipedia is happy with this as a solution
- [ ] Update Tina documentation after this is merged
ttps://tina.io/docs/extending-tina/filename-customization

### Screenshots

![CleanShot 2026-01-27 at 09 24
58](https://github.com/user-attachments/assets/13b398e0-b1e7-4cab-b072-1af6ec53c946)

**Figure: parse method used to force kebab case constraints for new
files**

<br> 

![CleanShot 2026-01-27 at 09 27
02](https://github.com/user-attachments/assets/f20e4bf5-392c-44ea-89a7-e4a2b05cc51f)

**Figure: parse method used to force kebab case when renaming files**
@pull pull bot locked and limited conversation to collaborators Jan 29, 2026
@pull pull bot added the ⤵️ pull label Jan 29, 2026
@pull pull bot merged commit 414dc87 into code:main Jan 29, 2026
3 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant