# Create Permalink Dynamically

**URL:** <https://www.ruby-forum.com/t/create-permalink-dynamically/217778>\
**Category:** Radiant CMS\
**Created:** [March 12, 2012, 9:03pm UTC](https://www.ruby-forum.com/t/create-permalink-dynamically/217778 "2012-03-12T21:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 12, 2012, 9:03pm UTC](https://www.ruby-forum.com/t/create-permalink-dynamically/217778/1 "2012-03-12T21:03:16Z")

</div>

I’m trying to add facebook comments to my site and when I get teh code  
I"m presented with the following:  
`<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>`

```
 `<div class="fb-comments" data-href="http://example.com"

```

data-num-posts=“2” data-  
width=“470”\>`

What I’d like to do is where the “data-href” resides I’d like to create  
a permalink to my page/pot dynamically. is there a radiant tag or  
something similar to do this? I can’t seem to find one.
