Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-21 16:19:04

toni1
Member
Registered: 2006-04-21
Posts: 14

Make excerpt floating around text image on main page

I have a page, recently started and I want to make the following. On the main page to place an image and an excerpt from the article, making the text of the excerpt flow around the image (image left han corner)
The text of the article should not be on the main page, it should be reached only by the permlink.
How can I make this?
Thanks.

Offline

#2 2006-04-21 17:06:40

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

Re: Make excerpt floating around text image on main page

In your article listform something like this:
<code>
<txp:article_image style=“float:left;” /><h2><txp:title /></h2>
<txp:excerpt />
<p><txp:permlink>read more…</txp:permlink></p>
</code>
and in the individual article form you include <txp:body /> instead of the excerpt tag and leave out the read more part.
On the page something like <txp:article form="your_individual_article_form" listform="your_listform" />.

Offline

#3 2006-04-22 09:55:38

toni1
Member
Registered: 2006-04-21
Posts: 14

Re: Make excerpt floating around text image on main page

where is the article list form? in which tab can I find it and in what part should I paste it?
Thanks

Offline

#4 2006-04-22 11:14:25

toni1
Member
Registered: 2006-04-21
Posts: 14

Re: Make excerpt floating around text image on main page

I managed to put the image, but the excertp concept seems difficult… And how do I make margins for the image?

Offline

#5 2006-04-22 11:16:37

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

Re: Make excerpt floating around text image on main page

Presentation > forms. Just create a new one and make it type: article. There is no actual difference between article forms and listforms. I said it that way because you can use one form for dispaying individual articles (attribute for the article tag: form=”…”) and another one for displaying article lists (attribute listform=”…”).

Offline

#6 2006-04-22 11:18:42

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

Re: Make excerpt floating around text image on main page

toni1 wrote:

And how do I make margins for the image?

In your CSS (Presentation > style). Add something like img {margin: 6px;}.

Offline

#7 2006-04-22 11:54:54

toni1
Member
Registered: 2006-04-21
Posts: 14

Re: Make excerpt floating around text image on main page

Thanks

Offline

Board footer

Powered by FluxBB