# Link file formation by type

**URL:** <https://discourse.jabref.org/t/link-file-formation-by-type/4176>\
**Category:** Help\
**Created:** [February 5, 2024, 9:41am UTC](https://discourse.jabref.org/t/link-file-formation-by-type/4176 "2024-02-05T09:41:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elric4](https://avatars.discourse-cdn.com/v4/letter/e/58956e/32.png) [@Elric4](https://discourse.jabref.org/u/Elric4)\
**Post date:** [February 5, 2024, 9:41am UTC](https://discourse.jabref.org/t/link-file-formation-by-type/4176/1 "2024-02-05T09:41:30Z")

</div>

Hi everyone,

I am using the “Linked file convention” to automatically rename and organise my pdf files. So, for journal types I am using the [journal] directory pattern which work perfectly. However, when I have a working paper, a book or a technical report since the [journal] field is empty all pdfs are gathered in the parent directory

I was wondering if there is a way for jabref to automatically use different folder conventions depending on the type (journal, book, working paper) of the reference.

for example it could be  
for journals, [journal]: Journal of Statistics\paper1.pdf  
for books, [publisher]: Springer\book1.pdf  
for working paper could be even group, Statistics\wp1.pdf

or something like that.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [February 6, 2024, 9:19pm UTC](https://discourse.jabref.org/t/link-file-formation-by-type/4176/2 "2024-02-06T21:19:43Z")

</div>

Hi,

You could only define a global pattern based on “entrytype”, groups or maybe specify a fallback pattern, for example:  
[journal:(unknown)] will use journal or the value “unknown”.  
But I am not sure if you can chain the modifiers…

> **[Manage associated files](https://docs.jabref.org/finding-sorting-and-cleaning-entries/filelinks#filename-format-and-file-directory-pattern)**
