Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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