Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-30 20:20:42

wii
Member
Registered: 2005-05-08
Posts: 77

Excerpt - I don´t get it ?!

I don´t get it, in my HTML I have:

<txp:article form=“default” listform=“default” />

For the text, which works fine.

But I´m trying to create an extra column for some additional info, for this I use:

<txp:article form=“excerpt” listform=“default” />

With a form called “excerpt”, that looks like this:

<txp:excerpt />

But it doesn´t work, the extra culumn just show what I have on normal text, not what I wrote in the excerpt field.

What am I missing here ?

Thanks

Offline

#2 2007-03-30 20:25:38

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

Re: Excerpt - I don´t get it ?!

Then you must be in an article list, because in your second tag you still say listform="default".
form is the form that will be used when viewing an individual article, listform the one for article lists.

Offline

#3 2007-03-30 20:28:50

wii
Member
Registered: 2005-05-08
Posts: 77

Re: Excerpt - I don´t get it ?!

GOT IT !!!!!!!!!!!!!!

thanks, thought I was going crazy and it was soooooo simple.

Offline

#4 2007-03-30 22:41:40

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Excerpt - I don´t get it ?!

It’s explained in detail in the FAQ.


Alex

Offline

#5 2007-04-04 20:38:53

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

Re: Excerpt - I don´t get it ?!

From the FAQ:
With either of the above methods, you can use the <txp:if_excerpt> tag inside the article form to lay out articles with and without excerpts differently. For example, to apply separate CSS classes to the excerpt and body

——-

i’d personally love to see an example of a textpattern template that has an article list with excerpts featuring one css style and the full article features another style

Offline

Board footer

Powered by FluxBB