# Checking across Components?

**URL:** <https://forums.realmacsoftware.com/t/checking-across-components/47441>\
**Category:** Elements API\
**Created:** [May 7, 2025, 1:20pm UTC](https://forums.realmacsoftware.com/t/checking-across-components/47441 "2025-05-07T13:20:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![logrunner](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@logrunner](https://forums.realmacsoftware.com/u/logrunner)\
**Post date:** [May 7, 2025, 1:20pm UTC](https://forums.realmacsoftware.com/t/checking-across-components/47441/1 "2025-05-07T13:20:36Z")

</div>

How can I check in a Component whether another related Component exists on the page?

My Blog components need to have the ConfigureBlog Component on the page. If it isn’t added I would like flag that up in the Editor as being missing.

I was thinking of related Components checking for a property in the ConfigureBlog Component and then displaying a warning DIV between an ‘@if(edit) | @endif’ pair if it was missing?

---

<div class="post-metadata">

**Author:** ![dan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/dan/32/28516_2.png) [@dan](https://forums.realmacsoftware.com/u/dan)\
**Post date:** [May 7, 2025, 5:32pm UTC](https://forums.realmacsoftware.com/t/checking-across-components/47441/2 "2025-05-07T17:32:42Z")

</div>

Hmmm, I’m not sure what the best way to do this would be 🤔  
I’ll message the rest of the team and see if they have any ideas on doing this…

---

<div class="post-metadata">

**Author:** ![tpbradley](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/tpbradley/32/25503_2.png) [@tpbradley](https://forums.realmacsoftware.com/u/tpbradley)\
**Post date:** [May 7, 2025, 6:58pm UTC](https://forums.realmacsoftware.com/t/checking-across-components/47441/3 "2025-05-07T18:58:23Z")

</div>

We don’t have a good solution right now, however we have a few ideas on how to handle this like automatically adding a “settings” component to the page when a component is added that requires it.

In the past, other editors have shown the warning in related components, and use some CSS in the configure component to hide it - it works but it’s not a great solution.

In the related component you might have this

```auto
<div class="com-realmac-blog-configure-error">
NEEDS CONFIGURE COMPONENT
</div>

```

And in the configure component you could have this

```auto
<style>
.com-realmac-blog-configure-error { display: none; }
</style>

```

Just be careful to use a unique class name to control the visibility like I’ve done above.
