Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-10-13 09:06:09
- Erik Holmer
- New Member
- Registered: 2005-10-12
- Posts: 4
Make permalinks to the full article?
Ok, I have two questions:
First question is, as the title suggest, how to make a list of articles with some text that gives a hint of what the full article will contain, and then a link to the whole text. I tried to make a “front” page, that displays only the excerpt and then a permalink to the whole article. But when I click the permalink I only get the excerpt again, the full article never shows.
And my second question is, if you take a look at this page: http://etunateater.nu/alger.htm . You see a gray box at the bottom with the title “Fakta”. Is there like a plugin for TXP that gives me a third box when I write a new article? I want another box like “excerpt” which says “fakta” or something, and everything I write in there will be added in a gray box just like the one on the link.
I tried searching the forums and google for these things. But frankly, I didn’t know a specific word to search for so I didn’t find much.
So sorry if the answer is obvious..
Offline
Re: Make permalinks to the full article?
Erik Holmer wrote:
> First question is, as the title suggest, how to make a list of articles with some text
> that gives a hint of what the full article will contain, and then a link to the whole text.
In your article form, you’ll need to use two conditional tags: <txp:if_article_list>
and <txp:if_individual_article>
. Here’s an example of a very basic form that would do what you want, so if you like use this as a model to customize to what you need:
<txp:if_article_list>
<h2><txp:title /></h2>
<p><txp:excerpt /></p>
<p><txp:permlink>Read more...</txp:permlink></p>
</txp:if_article_list>
<txp:if_individual_article>
<h2><txp:title /></h2>
<txp:body />
</txp:if_individual_article>
> And my second question is, if you take a look at this page: http://etunateater.nu/alger.htm .
> You see a gray box at the bottom with the title “Fakta”. Is there like a plugin for TXP that gives
> me a third box when I write a new article? I want another box like “excerpt” which says “fakta”
> or something, and everything I write in there will be added in a gray box just like the one on the
> link.
You probably want to use custom fields for this; you can set up the names for your custom fields in the admin tab (it’s under ‘Advanced Preferences’), and then they’ll appear on the tab where you write your articles. To add those extra fields to your article’s display, use the <txp:custom_field>
tag; you can read more about how it works here (and you might want to browse around on that site; it’s got complete documentation for all of the TXP tags and features).
Last edited by ubernostrum (2005-10-13 10:06:33)
You cooin’ with my bird?
Offline
#3 2005-10-13 10:21:05
- Erik Holmer
- New Member
- Registered: 2005-10-12
- Posts: 4
Re: Make permalinks to the full article?
Excellent!
Now, is there a way to make the custom textfields bigger, like the excerpt box?
And is there a way to put the custom fields at the front page when I’ve clicked the “write” tab in TXP?
Offline
#4 2005-10-13 14:54:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Make permalinks to the full article?
Now, is there a way to make the custom textfields bigger, like the excerpt box?
And is there a way to put the custom fields at the front page when I’ve clicked the “write” tab in TXP?
Offline
#5 2005-10-13 15:37:19
- Erik Holmer
- New Member
- Registered: 2005-10-12
- Posts: 4
Re: Make permalinks to the full article?
That textarea resizing plugin doesn’t apply to the custom textfields.. Or am I missing something?
Offline
#6 2005-10-13 20:58:26
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Make permalinks to the full article?
Oh I’m sorry, didn’t read the thread very well, and I don’t use it, I just remembered having read about it somewhere. Did you see this post?
Offline
#7 2005-10-14 00:43:51
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Pages: 1