# Org-roam-dailies navigation with custom template

**URL:** <https://org-roam.discourse.group/t/org-roam-dailies-navigation-with-custom-template/2551>\
**Category:** Troubleshooting\
**Created:** [April 10, 2022, 11:51am UTC](https://org-roam.discourse.group/t/org-roam-dailies-navigation-with-custom-template/2551 "2022-04-10T11:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richards](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@richards](https://org-roam.discourse.group/u/richards)\
**Post date:** [April 10, 2022, 11:51am UTC](https://org-roam.discourse.group/t/org-roam-dailies-navigation-with-custom-template/2551/1 "2022-04-10T11:51:53Z")

</div>

I’ve setup a template for org-roam-dailies in such a way that

- There is one file per month, so `YYYY-mm.org`
- Inside each file, headlines go with a timestamp

```auto
(setq org-roam-dailies-directory "daily/dailiesTest/")
(setq org-roam-dailies-capture-templates
      '(("d" "default" entry
         "* %T %?"
         :target (file+head "%<%Y-%m>.org" "#+TITLE: %<%Y-%m>\n"))))

```

I’ve tried few configurations, and at the moment this setting seems like a sweet spot between

- One-file-per-day, since the amount files is quickly escalating and slowing down my agenda view
- One big file with `datetree`, since I don’t like having three more level of nesting to start with for every new headline and I find having just one big file for my entries unnecessary

However, the headlines have no org-roam ID and I miss the ability of [navigating](https://www.orgroam.com/manual.html#Usage) through the notes. Is there a way to add this to my custom template?

---

<div class="post-metadata">

**Author:** ![richards](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@richards](https://org-roam.discourse.group/u/richards)\
**Post date:** [April 29, 2022, 1:57pm UTC](https://org-roam.discourse.group/t/org-roam-dailies-navigation-with-custom-template/2551/2 "2022-04-29T13:57:44Z")

</div>

Turns out that the template does enough of what I need. Navigation to previous/next day doesn’t really work (or at least just moves between months when necessary), but compared to a normal org-capture template I can at least have a backlink in roam.

```
(setq org-roam-dailies-directory "daily/")
(setq org-roam-dailies-capture-templates
      '(("d" "default" entry "* TODO %?"
         :target (file+head "%<%Y-%m>.org" "#+TITLE: %<%Y-%m>\n"))))
```
