Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-06-03 05:55:27

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,104
Website

article list and not on frontpage - txp:article now needs frontpage="0

Following this set of changes

Section settings: name: foo and on default page: no
Section template contains this to display a list of articles:

<txp:article listform="article_listing" limit="8" sort="Posted desc" allowoverride="0" wraptag="div" break="" class="archive-list article-list" />

Expected, when accessing domain.tld/foo/: display a list of articles in that section (title + excerpt per my listform), and optionally a pagination bar – as has been the case for a long time
Actual result: nothing is displayed.

If I add frontpage="0" to the <txp:article /> tag, things start to work…

(also affected: <txp:item_count /> and <txp:pages /> pagination widgets), both those need a <txp:article pgonly limit="8" /> before the actual output)

The <txp:article /> docs page is a little unclear on the subject.

Edit: made more clear, the expected output is a list of articles in that specific section.

Last edited by phiw13 (2024-06-03 06:31:58)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#2 2024-06-03 06:33:40

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,104
Website

Re: article list and not on frontpage - txp:article now needs frontpage="0

Oh, and this, in an article list:

<txp:article sort="id desc" wraptag="ul" break="li">
  <a href="<txp:permlink />"><txp:title /></a>
</txp:article>

That used to display a list of articles in that section (link + article title). Now: nothing. Adding frontpage="0" does not help.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2024-06-03 11:08:34

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

Re: article list and not on frontpage - txp:article now needs frontpage="0

Thank you. Any better?

Offline

#4 2024-06-03 11:27:43

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,104
Website

Re: article list and not on frontpage - txp:article now needs frontpage="0

I’ll test tomorrow morning local time when the sun rises again.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#5 2024-06-04 00:21:27

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,104
Website

Re: article list and not on frontpage - txp:article now needs frontpage="0

This is working fine now. After reverting my templates to the original code, all article list – and <txp:items_count /> and the pagination block) display as expected. Thank you!

Now, let’s investigate what more those changes bring to the toolbox.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

Board footer

Powered by FluxBB