Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-12-15 03:35:42
- Derekstaff
- Member
- Registered: 2014-10-23
- Posts: 28
How do I link to a specific article
A noob question, perhaps something which seems obvious, but I cannot seem to find any specific instructions on the subject.
Say I have a Textpattern article entitled “Rising to the Challenge” a vignette of the president of our organization. It is in the “Our Organization” section, ID #15. In the “About” page, say I have an html article which contains a short bio of the president. I want to create a link to the Textpattern article at the end of the bio. I would assume that there is some Textpattern tag which would create the link by calling on the Textpattern ID number. But I don’t see it. I see Textpattern article tags which would pull the entire article or the excerpt, Textpattern article tags which would return the ID or URL of the article or page which the tag is on, etc. But none for linking to a separate Textpattern article in the Textpattern site.
Am I missing something? Do I just need to create a regular html link <p>For more, read <a href="http://myurl.org/rising-to-the-challenge.html">Rising to the Challenge</a>.
?
Offline
Re: How do I link to a specific article
Is it what you are looking for?
<txp:article_custom id="15"><txp:permlink><txp:title /></txp:permlink></txp:article_custom>
Offline
Re: How do I link to a specific article
You can also create a macro so as to lessen the typing. etc’s suggestion could be reduced to <txp:articlelink id="15" />
.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: How do I link to a specific article
If it’s just a normal link to another article in the body text of your article, you can of course use the textile equivalent of your html snippet …
"Link Text":http://yourdomain.com/link-destination
… e.g in your case you would simply type this at the end of your body text:
For more, read "Rising to the Challenge":/rising-to-the-challenge
If that article is in a particular section, don’t forget to include that in the URL.
TXP Builders – finely-crafted code, design and txp
Offline
#5 2014-12-15 11:37:26
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,476
Re: How do I link to a specific article
In addition to jacob’s proposal you can use the ID:
For more, read "Rising to the Challenge":/?id=15
Offline
Re: How do I link to a specific article
Derek, by now you have guessed the answer to your question is no, there is not a Textpattern tag option that is easier than a regular hyperlink. The textile option is simple.
Should you wish to cross-link a number of internal articles, there is a plug to make it easier.
Offline
#7 2014-12-15 18:26:33
- Derekstaff
- Member
- Registered: 2014-10-23
- Posts: 28
Re: How do I link to a specific article
Thanks for all the suggestions! Lots of options. There may not be a specific tag, but I figured there was some way to use txp tags or textile) to accomplish it. You guys are great.
Offline
#8 2017-03-27 09:59:54
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: How do I link to a specific article
The wet_quicklink does not work in TXP4.6.2
How to fix it?
who knows?
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
#9 2017-03-27 11:30:37
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,313
Re: How do I link to a specific article
singaz wrote #305067:
The wet_quicklink does not work in TXP4.6.2
How to fix it?
who knows?
Hi, singaz, and welcome to the forum.
wet_quicklink is a 2 file plugin: Have you made sure that you also installed (and activated) wet_peex? (Available from the same URL as above.)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#10 2017-03-27 14:27:17
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: How do I link to a specific article
Hi, uli!
Hi, forum!
I installed 2 plugins
wet_quicklink.txt
wet_peex.txt
from
wet_quicklink-link-builder-for-textpattern
My sites on txp4.5.7 work fine.
When I installed the new version of txp4.6.2 and did not see the link on wet_quicklink.
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
#11 2017-03-27 15:15:48
- singaz
- Member
- Registered: 2017-03-12
- Posts: 150
Re: How do I link to a specific article
I know the reason for the error
conflict with plugin the abl_droploader
http://imgur.com/a/J5cnF
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
#12 2017-03-27 15:18:41
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,313
Re: How do I link to a specific article
I just installed the two, and it seems to work. You find the link below the advanced options. (You activated the plugins, right?)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline