Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-03-01 23:24:45
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Display Title and custom image from another section on frontpage?
Hey,
I want to display the latest article from a specific section (Analysis) on the front page.
PAGE: Default:
<txp:article_custom form="content-pre-match" limit="1" pgonly="0" section="analyse" sort="Posted desc" status="4" />
FORM: content-pre-match
<h3><txp:permlink>Juventus - Bologna</txp:permlink></h3><txp:permlink><img src="image/analysen.png" alt="Kampanalyse" /></txp:permlink>
The article should only be visible If it’s post time is NOT in the PAST. How do I do this?
Thanks in advance
Thomas
Last edited by Sono Juventino (2011-03-01 23:35:41)
Offline
#2 2011-03-01 23:54:37
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Display Title and custom image from another section on frontpage?
Are you looking for time="future"
(article_custom attributes)?
Offline
#3 2011-03-02 00:34:33
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: Display Title and custom image from another section on frontpage?
Sono Juventino wrote:
<txp:article_custom form="content-pre-match" limit="1" pgonly="0" section="analyse" sort="Posted desc" status="4" />
pgonly="0"
shouldn’t be there if you want to display anything, like you say:
- it’s for the article-tag, not for article_custom
- 0 is default, anyway
- with an erroneous value of 1 it will make your articles disappear like magic if you make the tag back into an article tag
status="4"
should be “live”, btw, which is default as well.
Last edited by uli (2011-03-02 00:35:38)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Display Title and custom image from another section on frontpage?
Also of help may be Advance Time Management and txp:expires tags?
Offline