Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-28 21:37:33

chas_h
New Member
Registered: 2005-08-02
Posts: 5

Extended article space.

Hi, Very new to textpattern and wondering if there is an easy way to add an extended (hidden) text area for longer articles. Something that would be accessed with a “read more” link in the main article. I tried searching the forums but wasn’t able to find anything

thanks in advance for any suggestions,
Chas.

Offline

#2 2008-03-28 21:44:37

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Extended article space.

You can use the ‘excerpt’ field to display the shorter version of an article.

Offline

#3 2008-03-28 22:06:14

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

Re: Extended article space.

Offline

#4 2008-03-28 22:59:09

chas_h
New Member
Registered: 2005-08-02
Posts: 5

Re: Extended article space.

Thank you both, I had to read the article at the Bombsite about 4 times but it finally sunk in :)

thanks,
Chas.

Offline

#5 2008-03-29 15:16:48

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Extended article space.

The if_excerpt procedure which can be used everywhere.

A basic article form

<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:article_image/>
<!-- The simple if_excerpt logic -->
<txp:if_excerpt>
  <txp:excerpt />
  <p><txp:permlink>More...</txp:permlink></p>
<txp:else />
  <txp:body />
</txp:if_excerpt>

Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

Board footer

Powered by FluxBB