Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2021-02-04 07:31:24
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,189
- Website
Re: Display articles only with empty category
amordecosmos wrote #328512:
Hey, that worked! Thank you.
Great, but it’s a shame one has to employ these acrobacies in 2021 for such a natural request. What should we do: allow article_custom
set pagination data? let article
alter category
and other ‘context’ attributes? something else?
Offline
#14 2021-02-04 09:25:45
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,548
- Website
Re: Display articles only with empty category
etc wrote #328513:
Great, but it’s a shame one has to employ these acrobacies in 2021 for such a natural request. What should we do: allow
article_custom
set pagination data? letarticle
altercategory
and other ‘context’ attributes? something else?
I think that it would be great to if we allow article_custom
to have pagination data. The tag already has all the other parameters, so it would just be one addition.
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#15 2021-02-04 10:06:59
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,268
- Website
Re: Display articles only with empty category
etc wrote #328513:
[…] allow
article_custom
set pagination data? letarticle
altercategory
and other ‘context’ attributes? something else?
The first certainly gets my vote! When amordecosmos OP popped up, my first reaction was <article_custom not category="catx" />
. But but pagination :-(
Where is that emoji for a solar powered submarine when you need it ?
Offline
#16 2021-02-04 10:50:43
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,189
- Website
Re: Display articles only with empty category
colak wrote #328515:
I think that it would be great to if we allow
article_custom
to have pagination data.
phiw13 wrote #328516:
The first certainly gets my vote!
Feasible, but we’d need to enable it via some attribute, for bw-compatibility sake:
<txp:article_custom exclude category="catx" pageby />
Which looks artificial compared with
<txp:article exclude category="catx" />
What could be wrong with enhancing <txp:article />
? If category
is not set, pull it from URL as usual.
Offline
#17 2021-02-04 11:14:02
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 10,090
- Website
Re: Display articles only with empty category
etc wrote #328518:
What could be wrong with enhancing
<txp:article />
? Ifcategory
is not set, pull it from URL as usual.
Can’t see any downside to this. Backwards-compatible and a neat enhancement. It brings article and article_custom a little closer, too. Maybe one day we could even have the flexibility of a single <txp:article />
tag that can do everything <txp:article_custom />
can, but employs context sensitivity first as it does now. Mmmmmm.
Last edited by Bloke (2021-02-04 11:21:00)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#18 2021-02-04 11:18:45
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,268
- Website
Re: Display articles only with empty category
etc wrote #328518:
Feasible, but we’d need to enable it via some attribute, for bw-compatibility sake:
yeah, OK. I was going with this thinking it might be easier to implement…
What could be wrong with enhancing
<txp:article />
? Ifcategory
is not set, pull it from URL as usual.
If you can work around the context-sensitivity issue, then sure!
Where is that emoji for a solar powered submarine when you need it ?
Offline
#19 2021-02-04 16:04:59
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,189
- Website
Re: Display articles only with empty category
phiw13 wrote #328520:
I was going with this thinking it might be easier to implement…
It’s more straightforward, yes, but uglier too.
If you can work around the context-sensitivity issue, then sure!
The only difficulty is to decide on attribute/context interplay.
Offline
#20 2021-02-04 21:20:29
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,189
- Website
Re: Display articles only with empty category
Bloke wrote #328519:
Maybe one day we could even have the flexibility of a single
<txp:article />
tag that can do everything<txp:article_custom />
can, but employs context sensitivity first as it does now. Mmmmmm.
Well, maybe not in 4.8.5, unless all subtleties are clear. Meanwhile, it’s possible now to use <txp:article_custom />
as partial substitute for <txp:article />
:
<txp:article_custom ...some atts... pageby offset />
Offline