Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-08-27 18:42:36

martian
Member
Registered: 2020-08-27
Posts: 12

Is it possible to create a magazine style using textpattern?

I have just installed TextPattern for the first time.

I am trying to discover if TP can do this.

I need something that works like this: https://frontendweekly.co

This site is a newsletter.

When you visit their page you see the issue 216 of that newsletter.
This issue has a series of articles.
In fact, excerpts from those articles.
You click on an article and you see that specifically.
At the bottom of the page, a link called “previous issue”, that will let you read issue 215, 214, 213, etc., of that newsletter.

I understand that sections can be used to group pages but they will show them fully, not excerpts.
Another thing: sections concatenate the pages by date order, latest top.
I will probably need to specify the order I need.

Can TP do such kind of layout?

Offline

#2 2020-08-27 19:28:41

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: Is it possible to create a magazine style using textpattern?

Txp did have a magazine. i wonder if something like that is what you are thinking of
TxpMag


…. texted postive

Offline

#3 2020-08-27 19:36:29

martian
Member
Registered: 2020-08-27
Posts: 12

Re: Is it possible to create a magazine style using textpattern?

More or less like that. I was thinking more on the lines of https://frontendweekly.co.

Each page shows excerpts of articles belonging to that issue of the magazine.

thanks anyway.

Last edited by martian (2020-08-27 19:51:51)

Offline

#4 2020-08-27 19:52:02

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: Is it possible to create a magazine style using textpattern?

martian wrote #325618:

More or less like that. I was thinking more on the lines of https://frontendweekly.co.
thanks anyway.

you should be able to accomplish something similar with textpattern, I am sure.


…. texted postive

Offline

#5 2020-08-27 20:24:30

martian
Member
Registered: 2020-08-27
Posts: 12

Re: Is it possible to create a magazine style using textpattern?

In broad lines what do I do?

Create categories? How?

Just give me a broad direction.

Thanks

Offline

#6 2020-08-27 20:34:51

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Is it possible to create a magazine style using textpattern?

Hi, welcome to txp and thanks for the questions, we appreciate challenges.

First of all, you can switch the Page of default (homepage) section from default to archive. This will replace full articles with their excerpts (or <txp:body /> with <txp:excerpt /> in txp-terms).

As for the pagination, it depends on whether the number of articles in each issue is constant or can vary. Categories are possible, but I would rather use a custom field for issue numbers.

Offline

#7 2020-08-27 20:35:04

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: Is it possible to create a magazine style using textpattern?

martian wrote #325620:

In broad lines what do I do?

Create categories? How?

Just give me a broad direction.

Thanks

Someone with more knowledge will respond soon. It’s best you get some clearer suggestions so that you can head in the direct direction.


…. texted postive

Offline

#8 2020-08-27 20:44:48

martian
Member
Registered: 2020-08-27
Posts: 12

Re: Is it possible to create a magazine style using textpattern?

sorry an error happened here and my reply repeated 3 times.

like I said…

The number of articles per issue of the magazine will vary.

Ok I show the archive, how do I break the archive listing to separate the whole things in “magazine issues”.

Offline

#9 2020-08-27 20:51:53

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Is it possible to create a magazine style using textpattern?

martian wrote #325620:

Ok I show the archive, how do I break the archive listing to separate the whole things in “magazine issues”.

If you use categories as issues, a link like path/to/site/?c=33 will take you to the 33rd issue. For custom fields the idea is the same: name some cf issue, then add match="category, issue" attribute to the relevant <txp:article /> tag. Now path/to/site/?issue=33 should do.

Offline

#10 2020-08-27 21:02:31

martian
Member
Registered: 2020-08-27
Posts: 12

Re: Is it possible to create a magazine style using textpattern?

I am ultra new to TextPattern. What you are saying makes very little sense to me because I am not familiar with how TP works.

Lets first start with what you have said before:

“First of all, you can switch the Page of default (homepage) section from default to archive. This will replace full articles with their excerpts (or <txp:body /> with <txp:excerpt /> in txp-terms).”

I guess this means: go to Presentation > Sections > click on “default”|View and change “uses page” to archive. I did that but now the front page listing just shows the article titles and the posted time. No excerpt at all.

I think the help I need will be extensive and I will be bothering you too much. I guess I will try to figure the whole thing. Thanks.

Just a final question: what files control the pagination of the first page?

Last edited by martian (2020-08-27 21:03:31)

Offline

#11 2020-08-27 21:12:08

martian
Member
Registered: 2020-08-27
Posts: 12

Re: Is it possible to create a magazine style using textpattern?

DUH! figured out, I forgot to add an excerpt to the articles. I thought it was auto generated… 😃

Offline

#12 2020-08-27 21:18:07

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Is it possible to create a magazine style using textpattern?

Sorry for being a bit terse.

martian wrote #325628:

I guess this means: go to Presentation > Sections > click on “default”|View and change “uses page” to archive. I did that but now the front page listing just shows the article titles and the posted time. No excerpt at all.

You are absolutely right. Do you articles have excerpts, i.e. something in Excerpt field? Otherwise you can extract few words from Body, though that’s more tricky.

I think the help I need will be extensive and I will be bothering you too much. I guess I will try to figure the whole thing. Thanks.

Helping does not bother me at all, when I can/have time. And if you wait few hours, other forum members will surely do.

Just a final question: what files control the pagination of the first page?

You will find <txp:newer|older /> tags in default and archive Pages, but they mean prev/next 10 articles (as set by limit attribute of <txp:artcile />). Since the number of articles per issue can vary in your case, you’ll need to alter the construction, but first things first.

Offline

Board footer

Powered by FluxBB