Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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: 3,863
Website

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

#13 2020-08-27 21:20:16

etc
Developer
Registered: 2010-11-11
Posts: 3,863
Website

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

martian wrote #325629:

I thought it was auto generated… 😃

It can be, there are some examples on the forum.

Offline

#14 2020-08-27 21:34:50

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

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

Thanks for all the help.

I have the archive thing and the excerpt part working.

I have created 5 random articles with excerpts.
I have created 2 categories “Issue 1” and “Issue 2”.
I have assigned 3 of these 5 articles to the first category and 2 to the other.

I have created a custom field called “issue”
and assigned this to the custom field part of each page: match=“category, issue”

When I visit the first page, I see all articles and excerpts.

When I visit something like.

https://example.com/?issue=1

I see the same thing. All pages and excerpts. The number 1 can be any number, 13241241234124 for example. It will not give me an error and will show the same thing.

Last edited by martian (2020-08-27 21:36:34)

Offline

#15 2020-08-27 21:56:54

etc
Developer
Registered: 2010-11-11
Posts: 3,863
Website

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

martian wrote #325632:

I have created a custom field called “issue”
and assigned this to the custom field part of each page: match=“category, issue”

You should assign an issue number (1,2,…) to issue cf of each article. Then find

<txp:article class="article-list" form="article_listing" limit="10" wraptag="ul" />

in archive Page and replace it with

<txp:article class="article-list" form="article_listing" limit="999" wraptag="ul" issue='<txp:page_url type="issue" default="1" />' />

Then you should be able to filter articles by ?issue=... URL parameter.

Offline

#16 2020-08-27 22:25:09

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

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

thanks!

Offline

#17 2020-09-01 22:14:16

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,934
Website

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

BTW: bloke wrote an article on the custom magazine setup used for the TXPmag site, which you can find … on the site itself here. It employs a routing plugin that hasn’t been around for a while but it may still be relevant.


TXP Builders – finely-crafted code, design and txp

Offline

#18 2020-09-02 03:32:54

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

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

fantastic, thanks!!!!!!

Offline

#19 2020-09-02 05:35:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,269
Website

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

Note that this is an old article. Most of the functions mentioned can now be achieved using native tags without any plugins.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB