> ## Content Index
> Fetch the complete content index at: https://horrell.ca/llms.txt
> Use this file to discover other available public pages before exploring further.

# Adding "post to" links for del.icio.us, digg, and ma.gnolia in Textpattern
- URL: https://horrell.ca/2006/08/05/adding-post-to-links-for-delicious-digg-and-magnolia-in-textpattern/
- Published: 2006-08-05T04:14:00.000Z
- Updated: 2014-03-10T00:47:14.000Z
- Author: Christopher Horrell
- Tags: #Import 2024-10-01 02:36

Here’s how to add “post to” links for [del.icio.us](http://www.delicious.com/?ref=horrell.ca), [digg](http://digg.com/?ref=horrell.ca), and ma.gnolia to individual articles in [Textpattern](http://textpattern.com/?ref=horrell.ca).

**Update:** Fixed it so the links add urlencoded titles to the output. It’s a bit ugly, but seems to work ok. And I’m having some issues with displaying the PHP code properly, so bear with me.

### del.icio.us

```

post to <a href="http://del.icio.us/post?url=<txp:permlink />&amp;title=<txp:php>$a = title (array ());echo urlencode($a);</txp:php>">del.icio.us

```

### digg

```
post to <a href="http://www.digg.com/submit?phase=2&amp;url=<txp:permlink />">digg</a>
```

### ma.gnolia

```

post to <a href="http://ma.gnolia.com/bookmarklet/add?url=<txp:permlink />&amp;title=<txp:php>$a = title (array ());echo urlencode($a);</txp:php>">ma.gnolia</a>

```

Clicking one of the those links will automatically post a permanent link for an article and, in the case of del.icio.us and ma.gnolia, the title to one of the above services.