# Adding ID's to Content Modules

**URL:** <https://community.hubspot.com/t/adding-ids-to-content-modules/16259>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [September 16, 2019, 5:58pm UTC](https://community.hubspot.com/t/adding-ids-to-content-modules/16259 "2019-09-16T17:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikemidaxo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mikemidaxo/32/2490_2.png) [@mikemidaxo](https://community.hubspot.com/u/mikemidaxo)\
**Post date:** [September 16, 2019, 5:58pm UTC](https://community.hubspot.com/t/adding-ids-to-content-modules/16259/1 "2019-09-16T17:58:12Z")

</div>

Is there a way to add ID’s directly onto image modules or rich text modules? I feel like I used to be able to do this, but currently, it seems like I’m only able to add classes.

I can “group” an image module and the ID form field becomes available, but that seems like really unnecessary markup for something simple. Any help? Thanks.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [September 16, 2019, 9:39pm UTC](https://community.hubspot.com/t/adding-ids-to-content-modules/16259/2 "2019-09-16T21:39:29Z")

</div>

@mikemidaxo , do you mean an image field within a module?

you can use {{ name }} as an id to a wrapper within the module.

Each module does have a unique id.  
if you need a unique id for fields within the you could either add a text field to be inputed or you could append the loop.index to a string so it would look like

```auto
<img id="img0">
<img id="img1">
<img id="img2">
<img id="img3">

```

if it was in a repeater
