Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

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

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: 5,053
Website GitHub

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: 4,595
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: 9,011
Website GitHub Mastodon Twitter

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 | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB