Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-05-24 20:12:24

jim
Member
Registered: 2008-11-06
Posts: 29

External permalinks?

Hi folks,

I was wondering if it was possible to make the permalink of an article be a link to an external resource. So say, for example, I want to say something about a funny YouTube video, I would want the article permalink to point to that video from both my site and from my RSS feed (for example, similar to what John Gruber does at Daring Fireball).

If the permalink can’t be monkeyed with easily in this way, perhaps there is a way to intermingle TXP “articles” and “links” in reverse chronological fashion on the home page? I believe TXP links give the behavior that I want, but they are not integrated into the blog flow.

Thanks!

Jim

Offline

#2 2011-05-24 20:15:40

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: External permalinks?

I use a custom field for these types of urls and something like this:

<txp:if_custom_field name="link">
<a href="<txp:custom_field name="link"/>" title="" rel="nofollow"><txp:title/></a>
<txp:else />
<txp:permlink />
</txp:if_custom_field>

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2011-05-24 20:19:59

jim
Member
Registered: 2008-11-06
Posts: 29

Re: External permalinks?

Ah, cool, that would do it, thanks! Then I assume I would also have similar code in my RSS feed, perhaps following these instructions to allow RSS customization?

http://textpattern.org.ua/howto/create-and-customize-rss-feeds

Thanks again!

Offline

#4 2011-05-24 20:47:35

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: External permalinks?

If you don’t want your RSS Readers to visit your site before getting to that url then yes you’ll need a custom feed. I think there’s a simpler way though to customize your feed though.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2011-05-25 00:01:42

jim
Member
Registered: 2008-11-06
Posts: 29

Re: External permalinks?

Yeah, I figure if I provide a full-text feed then what the reader probably wants is to visit the article I am excerpting/referencing, rather than having to go to my blog to read what they’ve already read via my feed, just so they can click on a link to get to where they really want to go. Seems more efficient this way, even if the middleman I’m cutting out is myself. :-)

Thanks for the RSS plugin, I’ll give that a look!

Offline

#6 2011-05-28 13:22:02

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: External permalinks?

I’ve a similar question so i think could be useful to link it here:

I need to get an RSS feed generated by link category and containing a certain number of links with their titles from each category and/or from all the link categories.

Offline

#7 2011-05-28 17:21:18

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: External permalinks?

Bongo-man wrote:

I need to get an RSS feed generated by link category and containing a certain number of links with their titles from each category and/or from all the link categories.

Have a look at Create and customize your own RSS feeds

Offline

#8 2011-05-28 17:40:48

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: External permalinks?

I think this cannot work.
I cannot create sections for the hyperlinks, only categories.
I was not talking of permalinks from articles posted, so I cannot use article custom.
I need to list hyperlinks by category (redirecting to an external article) in a RSS feed.

Offline

#9 2011-05-28 17:50:07

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: External permalinks?

Hi you can still follow the instructions on Create and customize your own RSS feeds but instead of doing it in a section you can use rah_external_output


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2011-05-28 19:00:13

Bongo-man
Member
Registered: 2009-03-18
Posts: 243

Re: External permalinks?

Too much difficult 4 me. I tried it time ago setting my RSS feeds.
thanks

Last edited by Bongo-man (2011-05-28 19:57:24)

Offline

Board footer

Powered by FluxBB