# Link Control Setup

**URL:** <https://forums.realmacsoftware.com/t/link-control-setup/44312>\
**Category:** RapidWeaver Elements\
**Created:** [August 16, 2024, 11:08pm UTC](https://forums.realmacsoftware.com/t/link-control-setup/44312 "2024-08-16T23:08:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [August 16, 2024, 11:08pm UTC](https://forums.realmacsoftware.com/t/link-control-setup/44312/1 "2024-08-16T23:08:09Z")

</div>

I’m trying the link control with this code in properties:

```auto
{
  "title": "Link:",
  "properties": [{
    "property": "link",
    "title": "Link Text",
    "link": {
      "subtitle": "Subtitle"
    }
  }]
}

```

and I’m trying to get the href using this in template:  
`Link: {{link.href}}`

I don’t see the control in the sidebar or anything in template.

Bill  
Stack-Its

---

<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:** [August 17, 2024, 9:51am UTC](https://forums.realmacsoftware.com/t/link-control-setup/44312/2 "2024-08-17T09:51:50Z")

</div>

If you’re not seeing the control in the inspector (or the inspector stops responding to changes) it would suggest a problem processing the properties json. I’m not sure if your sample is the full content or a snippet, but it appears to be missing the top level `groups` object.

Changing it to the following should work.

```auto
{
    "groups": [{
        "title": "Link:",
        "properties": [{
            "property": "link",
            "title": "Link Text",
            "link": {
                "subtitle": "Subtitle"
            }
        }]
    }]
}

```

---

<div class="post-metadata">

**Author:** ![Bill](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/bill/32/107_2.png) [@Bill](https://forums.realmacsoftware.com/u/Bill)\
**Post date:** [August 17, 2024, 5:46pm UTC](https://forums.realmacsoftware.com/t/link-control-setup/44312/3 "2024-08-17T17:46:57Z")

</div>

Yes, I’m just showing the snippet inside of the main properties, but for clarity, here is a total example of my link property code:

```auto
{
"groups": [
  {
    "title" : "Group Name1",
    "icon": "textformat.size",
    "properties": [
      {
        "title": "Link:",
        "properties": [{
          "title": "Link Text",
          "property": "link",
          "link": {
            "subtitle": "Subtitle"
          }
        }]
      }
    ]
  }
]
}

```

Still control doesn’t show or value in template.

---

<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:** [August 17, 2024, 7:00pm UTC](https://forums.realmacsoftware.com/t/link-control-setup/44312/4 "2024-08-17T19:00:55Z")

</div>

I’ve had a quick look and that code doesn’t seem right, why do you have the extra properties and title in there 🤔

I’ve made some changes and it’s now working correctly:

```auto
{
  "groups": [
    {
      "title": "Group Name1",
      "icon": "textformat.size",
      "properties": [
        {
          "title": "Link Text",
          "property": "link",
          "link": {
            "subtitle": "Subtitle"
          }
        }
      ]
    }
  ]
}

```
