Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-16 00:28:53

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

flexibility of TXP links?

i’m trying to make a great page of links and i never really tried this out in txp so much before. i’m wondering what are the limitations of using txp’s built in link system? some things i’m looking for are;
a rss feed for the link page so if users want to subscribe when a new site gets added they can
the ability to allow people to comment on each link
and eventually allow people to rate each link, which will allow you to have sorting options.
oh and sorting options – ie most clicked on link, alphabetical, category, recently added

with that being said, does it sound like my links are more like “articles”? or should i stick with the built-in link system?

Offline

#2 2008-01-16 00:31:07

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: flexibility of TXP links?

ya i don’t think you’re going to be able to get comments on links (the way they’re built with textpattern). if you need that sort of functionality its probably best that each link is an article (which is what article lists are anyway)

Offline

#3 2008-01-16 00:32:44

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: flexibility of TXP links?

iblastoff wrote:

ya i don’t think you’re going to be able to get comments on links (the way they’re built with textpattern). if you need that sort of functionality its probably best that each link is an article (which is what article lists are anyway)

you are quick steve, thank you. and you have the best avatar on the forum ;)

Offline

#4 2008-01-16 00:59:37

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: flexibility of TXP links?

ok so i explored the article route a little closer, and yeah this is a little confusing. see when i use the built in txp link system it’s convenient cause it’s got the proper fields for site name, site url and description. but if you use the article form, the title of the blog post should be the title of the website, but then where does the url go?

Offline

#5 2008-01-16 01:05:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: flexibility of TXP links?

Why don’t you use TXP’s link section, and store the link’s id in an article’s custom field. I think it is possible to use link tags in an article form. Combined with asy_wondertag it must be doable.

Last edited by els (2008-01-16 01:08:06)

Offline

#6 2008-01-16 01:14:21

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: flexibility of TXP links?

You’d want to use a custom field to hold the url

Offline

#7 2008-01-16 02:06:11

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: flexibility of TXP links?

oh dear i don’t really understand what either of those posts mean. but i did look up custom fields and i found that on this help page there is something called a Linklog example. still doesn’t make much sense to me though

Last edited by mrtunes (2008-01-16 02:06:41)

Offline

#8 2008-01-16 09:09:26

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: flexibility of TXP links?

I’ve just started experimenting with this for myself.

What I wanted was a list on my homepage of the books I’m currently reading, with a link to the book on Amazon. Sounds like a use for links doesn’t it? But then I also wanted to show the cover of the book as the link, instead of text.

What I have done is to store my books as articles, and have set up one of the custom fields to hold the url for the Amazon link. To output the list, I used an article form that only has the article image and the url to construct a link, and then call that with article_custom tag.

And it works!

If you want the exact details of how I acheived this, I’m happy to give more information tonight when I get home from work. And this may not be the best solution – I’m no expert. But I have seen others talk about doing it this way

Offline

#9 2008-01-16 09:18:58

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: flexibility of TXP links?

aslsw66 wrote:

If you want the exact details of how I acheived this, I’m happy to give more information tonight when I get home from work. And this may not be the best solution – I’m no expert. But I have seen others talk about doing it this way

sounds interesting, i would love to hear more details about how you did this when you have time. thanks

Offline

#10 2008-01-16 10:28:03

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

Re: flexibility of TXP links?

In an article form you can have something like

<txp:if_custom_field name="url"><a href="<txp:custom_field name="url" />"><img src="<txp:custom_field name="image" />" /></a></txp:if_custom_field>

Last edited by colak (2008-01-17 14:28:47)


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

Offline

#11 2008-01-17 09:00:30

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: flexibility of TXP links?

colak wrote:

In an article form you can have something like

<txp:if_custom_field name="url"><a href="<custom_field name="url" />"><img src="<custom_field name="image" />" /></a></txp:if_custom_field>

ah very cool. i was able to get part of this working – ie the title of the article became a link but in this example the title of the article was rendered “>” />
and the link was pointing to; http://www.mysite.com/<custom_field name=

Offline

#12 2008-01-17 11:28:16

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: flexibility of TXP links?

colak has just shown exactly what I’m doing. The only difference is that I didn’t use the <txp:if_custom_field> tag fist – which on second thoughts I should do even though I know there should ‘always’ be a URL field there.

The only difference I have is that I have used <txp:title> for the title attribute on the link.

Offline

Board footer

Powered by FluxBB