Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-02 13:14:52

groda
Member
Registered: 2007-04-22
Posts: 11

"read more"-link and it's placing

Thanx to the very helpfull “how do i”-pages i have managed to figure out how to make an “read more”-link attached to my exerpts.

But i’m not really happy width it. I’s it possible to make this text appear directly after written text, and then be followed by a picture? As i have it now, my exerpts concists of text, then a picture, and after the picture the “read more”-link. It works, but it lookes a bit stupid.

Greatfull for help!

Offline

#2 2007-06-02 15:18:57

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: "read more"-link and it's placing

Post the contents of your form or page so we can see what you have now.

Offline

#3 2007-06-02 15:32:26

groda
Member
Registered: 2007-04-22
Posts: 11

Re: "read more"-link and it's placing

<txp:if_article_list>
<h3><txp:permlink><txp:title /></txp:permlink></h3>

<p><txp:excerpt />
<txp:permlink>&nbsp;&nbsp;Läs mer…</txp:permlink>
</p>

<p class=“small”><txp:posted /></p>

<txp:else /> <!— full article body —> <h3><txp:permlink><txp:title /></txp:permlink></h3> <txp:body />
</txp:if_article_list>

(“Läs mer…”=“read more” in swedish)

If you want to see an example of the problem, go to www.karsk.se/blogg2 and to the first article (att the bottom of the page).

If you can give me any idea of how to make the page to look good in IE at the same time, i’ll be indeed greatefull!

Offline

#4 2007-06-02 15:49:56

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: "read more"-link and it's placing

How about this:

<h2><txp:title /></h2>
<txp:if_excerpt>
<txp:excerpt />
<p class=“small”><txp:permlink>Read full story</txp:permlink> Posted: <txp:posted /></p>
<txp:article_image />
<txp:else />
<txp:body />
</txp:if_excerpt>

This gives you a title, an excerpt (if there is one) and a read more link followed by the article image. If no excerpt, the title and the body of the article.

You can also place the image in the excerpt if you want, in whhich case you don’t need the article image tag.

Offline

#5 2007-06-03 07:56:25

groda
Member
Registered: 2007-04-22
Posts: 11

Re: "read more"-link and it's placing

ok! Thanx, i’ll try it!

Offline

Board footer

Powered by FluxBB