# SOLVED: Exclude properties drawer from Unlinked References rg

**URL:** <https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025>\
**Category:** Troubleshooting\
**Created:** [September 9, 2021, 9:23pm UTC](https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025 "2021-09-09T21:23:24Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [June 9, 2022, 11:12am UTC](https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025/22 "2022-06-09T11:12:22Z")

</div>

> [@mandelbot](#):
>
> it looks to me like `s-contains?` is only looking at the org document title/file path and not the contents.

It seems you are right about this.

If you have the file name (this includes the path in the Emacs terminology), I think it should be a simple matter of opening the file in a temp buffer and look for `:NOTER_PAGE:` or `:NOTER_DOCUMENT:`. That’s what I now see `(org-roam-unlinked-references-preview-line f row)` does with `row` .

You can then add the something like this below as an element to the `and` part of the `when` condition instead of `s-contains?`:  
`(not (function-to-check-string-in-row-of-file ":NOTER_PAGE:" file row))`

---

<div class="post-metadata">

**Author:** ![mandelbot](https://avatars.discourse-cdn.com/v4/letter/m/85f322/32.png) [@mandelbot](https://org-roam.discourse.group/u/mandelbot)\
**Post date:** [June 9, 2022, 6:31pm UTC](https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025/23 "2022-06-09T18:31:36Z")

</div>

Amazing, thank you @nobiot ! I was able to exclude all lines containing references to “:NOTER\_…” by stitching together the following config from this thread:

```auto
              (when (and match
                         (not (file-equal-p (org-roam-node-file node) f))
                         (member (downcase match) (mapcar #'downcase titles))
                         (not (s-contains? ":NOTER_" (org-roam-unlinked-references-preview-line f row)))

```

I don’t really know much elisp so I am sure this is a clunky fix, but in the few instances I have tested so far it works perfectly!

Can’t tell you how pleased I am to finally be able to use the unlinked references section. Thanks again!!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [June 9, 2022, 7:00pm UTC](https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025/24 "2022-06-09T19:00:18Z")

</div>

Wow that’s a clever way to do this!

[Previous page](https://org-roam.discourse.group/t/solved-exclude-properties-drawer-from-unlinked-references-rg/2025.md?page=1)
