Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-03-04 16:42:42
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Link in title?
How can I make the link form the title of the article – but not the permlink but the link to an other site?
Offline
Re: Link in title?
I don’t understand your question. Can you give an example of what you’re trying to do?
Offline
#3 2006-03-04 16:58:27
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Link in title?
Elenita wrote:
I don’t understand your question. Can you give an example of what you’re trying to do?
Yes, of course: I’m working on this site – http://gallery.wordstudio.cz and I wish to make the IE 7 beta B the link to the site http://nekam.cz And it’s the title of the article.
Offline
Re: Link in title?
Are you using Textpattern’s built-in links function to do this? Or are you creating new articles and trying to use Textile in the title field?
If you’re doing the latter, you should be aware that Textile can only be used within article (and comment) bodies—not the title field. If this is what you’re after, I suggest using the links function instead and changing your templates to also show your linklist.
Offline
#5 2006-03-04 18:00:24
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Link in title?
Elenita wrote:
Are you using Textpattern’s built-in links function to do this? Or are you creating new articles and trying to use Textile in the title field?
If you’re doing the latter, you should be aware that Textile can only be used within article (and comment) bodies—not the title field. If this is what you’re after, I suggest using the links function instead and changing your templates to also show your linklist.
Yes, I want to link to some other site from the title of my article. How should I use links function? Is it <txp:link />? And where I should to insert the link? Or I don’ understand you.. :-(
Offline
Re: Link in title?
The links function is under Content —> Links.
Put the title (i.e., IE 7 Beta B) in the title field, the URL in the URL field, and commentary (“New Internet Explorer was released last week. You can download and try this”) in the description field.
You can include those links into your templates by using the <a href=“http://textpattern.net/wiki/index.php?title=Txp:linklist_/”>txp:linklist /</a> and related tags.
Offline
#7 2006-03-05 06:31:42
- eleven
- New Member
- Registered: 2006-03-05
- Posts: 3
Re: Link in title?
Hello..
Im trying to do the same thing and am having trouble following what you mean?
Idealy id like it so that a url can be put into the header when an article is being written – ie. just using a href or a textile tag, but i cant seem to get these to work in when i put them into a title of a new article..
Offline
Re: Link in title?
Again, Textile does <strong>not</strong> work in article titles. Unless I’m mistaken, <strong>only</strong> plain text is allowed in titles.
If you’d like to have your title link to someplace else, do not create a new article. Use the links function and put the “text” of your post in the description field instead, and then make sure your template shows your links by using <code><txp:linklist /></code>
Offline
#9 2006-03-06 00:19:41
- eleven
- New Member
- Registered: 2006-03-05
- Posts: 3
Re: Link in title?
My issue with that is that i want to still have a ‘read more’ option..
i guess i could still do this by typing the heading (and styling it) in the first line of the article, and just not displaying the title, huh?
yeaaaaah, that will do me
Offline
#10 2006-03-06 01:09:43
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: Link in title?
What about using a custom field?
You could even set it up with conditionals so that if the custom field is defined, then that link is displayed, otherwise the usual permalink is shown.
-Kurt
kurt@kurtraschke.com
Offline
Pages: 1