Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-03-17 15:04:39

ultramega
Member
Registered: 2006-02-26
Posts: 221

Issue-based archive with custom fields

Hi guys! I need a magazine-styled archive, with cover-images, and titles: issue1, issue2 etc. That basic stuff. I can’t test this right now, so before dreaming more, any ideas is this going to be work:

I write articles normally, adding number of the issue they belong into a custom field named “number”

Later I could provide issue-archive, by writing one “starter-article” per issue. Each starter would contain just

title=issue name
article image=cover image of the issue
and again,
custom field number=same as issue number

Then, normal listing of these, sorted by custom field. Shows nicely cover-images and issue-names.

When opening one of these starters, form would be like:

Article-image
Title
<article custom number=”<txp:custom_field name=“number” /> section=“articles” />

And what I expect this to produce, is an article with image, name and below them, link to all articles which belongs to same issue as the containing cover article.

Am I forgetting something obvious? Is that custom field number=number thing going to work at all?

Offline

#2 2009-03-17 16:16:38

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Issue-based archive with custom fields

Yep, seems like it’d work (minor changes to syntax).

I did a similar thing to group a newsletter.

<txp:article image/>
<txp:title />
<txp:article_custom number='<txp:custom_field name="number" />' section="articles" />

Last edited by mrdale (2009-03-17 16:18:02)

Offline

#3 2009-03-18 05:14:59

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Issue-based archive with custom fields

Great, thanks!.

Offline

Board footer

Powered by FluxBB