Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-23 14:50:08
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
URL-only title field
I’d like to be able to input a whole new URL in the URL-only title field (under content – write tab).
Example (section/title url mode on):
If I input http://google.com in the field TXP will produce the following URL http://mysite.com/section/http://google.com
What I want is this: http://google.com (I need to strip out “http://mysite.com/section/” part).
I couldn’t find the function that handles this. Anyone knows where to find this?
Last edited by Jaro (2006-04-23 14:50:22)
Offline
Re: URL-only title field
I need to strip out “http://mysite.com/section/” part
Articles are content that appear on your site. So the links to these articles will always contain the url to your site.
If you want to manage furthter data, like outgoing links to a related resource, you should look into custom fields, which can hold any kind of data. With a custom-field that contains a fully qualified url, you can easily link to external places for each article.
Offline
#3 2006-04-23 15:30:58
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
Re: URL-only title field
Hi Sencer,
thanks for your answer. I suspected that this might interfere with TXP permlink model.
I’m trying to achieve the following:
I’ve got a section where I post commented links using article form (due to linklist tag html limitations). The feed of this section contains permlink to the article and body of the article. I’d like the title link in the feed to be link to the actual article/website I’m linking to rather than permlink back to my website.
In other words, I’d like this part of the feed <link><txp:permlink /></link>
be something like <link><txp:custom1></link>
.
I also can’t hack the whole rss or atom functions because this hack would apply only to one section.
I thought this could be achieved through URL-only title field. I’m not sure if I make much sense. You can check out what I mean by subscribing to kottke’s remainder links.
Do you have and advice how to achieve the same effect with TXP?
Offline
Re: URL-only title field
Then what you want is to change the feeds, not to change the permalink of the article. If you were able to do what you said (changing the permalink of the articles to point to someplace other than the article), then nobody would be able to view the article on your page, and nobody would be able to comment on it.
Modifying the existing feeds is currently not possible without hacking the files. What you could do is create altnernative feeds for you remainders. This could be done with a plugin, or by creating another section that outputs the desired feed through the user of article_custom and the respsective atom/rss-markup (and you would have to add a snippet of php to set the correct HTTP-Header, too). I think going with a plugin is probably the easier solution, given that said plugin could even override the existing URIs for feeds (intercept and answer certian feed-requests, if you will), which would make the use of the plugin totally transparent to end-users.
Last edited by Sencer (2006-04-23 19:00:32)
Offline
#5 2006-04-23 19:49:44
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
Re: URL-only title field
Well, this article basically needs to appear on the frontpage and on the section page (among other articles from the same section). It doesn’t need its own page like usual articles do. Comments are off. Does it really need its own permalink for that?
Anyway, it looks like the plugin option you suggested would be probably more transparent. I can’t make the plugin myself but I’ll try to request it.
Thanks!
Offline
Re: URL-only title field
Well, this article basically needs to appear on the frontpage and on the section page (among other articles from the same section). It doesn’t need its own page like usual articles do. Comments are off. Does it really need its own permalink for that?
Why don’t you use “links” instead of “articles” to manage it? The feeds for links contain the outward pointing URLs, instead of permalinks (which don’tt exist for indivudal links).
Offline
#7 2006-04-24 06:45:01
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
Re: URL-only title field
Links don’t give me the freedom that articles do. Sometimes I want to make link in the middle of the sentence. As far as I know this can’t be done through links.
Offline
#8 2006-04-24 07:43:44
- frederik
- Member
- From: Denmark
- Registered: 2004-12-08
- Posts: 17
Re: URL-only title field
Jaro wrote:
Links don’t give me the freedom that articles do. Sometimes I want to make link in the middle of the sentence. As far as I know this can’t be done through links.
Though TXP’s handling of links might not be as flexible as the handling of articles it IS possible to use either Textile or XHTML in the link description. That might help you out!
/Frederik
Offline
#9 2006-04-24 08:46:54
- Jaro
- Member
- From: S/F
- Registered: 2004-11-18
- Posts: 89
Re: URL-only title field
You are absolutely right Frederik! I didn’t notice that it’s now possible to use Textile in the link description. Problem solved. Thanks!
Offline
Pages: 1