# The display problem of the nodes with the same title

**URL:** <https://org-roam.discourse.group/t/the-display-problem-of-the-nodes-with-the-same-title/2829>\
**Category:** Troubleshooting\
**Created:** [October 23, 2022, 6:53am UTC](https://org-roam.discourse.group/t/the-display-problem-of-the-nodes-with-the-same-title/2829 "2022-10-23T06:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtuwei](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mtuwei](https://org-roam.discourse.group/u/mtuwei)\
**Post date:** [October 23, 2022, 6:53am UTC](https://org-roam.discourse.group/t/the-display-problem-of-the-nodes-with-the-same-title/2829/1 "2022-10-23T06:53:43Z")

</div>

Hi, May I ask if you have encountered the problem. Thanks in advance.

The only one of the two nodes with the same title can be displayed in the list

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/2X/1/1faf5c0613d19d418e5e278f9416a3d8a86ab781.png)

While in the org-roam ui graph, the two nodes can all be displayed

 ![image](https://global.discourse-cdn.com/free1/uploads/orgroam/original/2X/8/86d1507f33552ec92cfbf3d68c9a43661a92db63.png)

---

<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:** [October 23, 2022, 4:11pm UTC](https://org-roam.discourse.group/t/the-display-problem-of-the-nodes-with-the-same-title/2829/2 "2022-10-23T16:11:32Z")

</div>

Yes. I suggest you try something like this below to make each candidate displayed unique. See some other ideas in the [wiki](https://github.com/org-roam/org-roam/wiki/User-contributed-Tricks#showing-node-hierarchy).

```auto
(cl-defmethod org-roam-node-hierarchy ((node org-roam-node))
  (let ((level (org-roam-node-level node)))
    (concat
     (when (> level 0) (concat (org-roam-node-file-title node) " > "))
     (when (> level 1) (concat (string-join (org-roam-node-olp node) " > ") " > "))
     (org-roam-node-title node))))

(setq org-roam-node-display-template "${hierarchy:*} ${tags:20}")

```

---

<div class="post-metadata">

**Author:** ![mtuwei](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@mtuwei](https://org-roam.discourse.group/u/mtuwei)\
**Post date:** [October 23, 2022, 4:31pm UTC](https://org-roam.discourse.group/t/the-display-problem-of-the-nodes-with-the-same-title/2829/3 "2022-10-23T16:31:06Z")

</div>

Thanks a lot for your help. Tell me not only the answer, but the way. 👏 👍
