Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [Solved] Extraction for all articles containing a unique title string
… The only difficulty that I encounter: I can’t sort ascendant inner results (books list)… (not really a problem, just a refinement) .
Edit: Nope. It works (tested with 4.8.8-dev; code above corrected).
Last edited by Pat64 (2021-12-13 18:02:56)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: [Solved] Extraction for all articles containing a unique title string
Pat64 wrote #332098:
To keep all simplest for the client, all article titles use an “at” sign (@) chosen as a very improbable book title occurrence. These titles are formatted as our needs with some Regex (thank you lot Julian for your help ;). Title of the book@ Author Name…
Thanks for the detailed description. I’m going to have study that more carefully when I have more time because I think that situation could come up in other constellations.
One thing I did wonder about, though: was there a particular reason why you didn’t put the author name in a custom field, and then use that to filter the book / author lists?
I have a possible potential site with an ancient (2004) database where the “work” and “author” are in separate tables and linked. I worked out a way one could filter in both directions, though it requires more database queries. One could, however, solve that possible speed-bump by caching the results.
@Julian: the js cart solution is this one (but largely altered by me) because the client didn’t need a complex process (all is governed by custom fields): https://github.com/cara-tm/minicart
Nice. Something else to look at in more detail. Thank you!
TXP Builders – finely-crafted code, design and txp
Offline
Re: [Solved] Extraction for all articles containing a unique title string
jakob wrote #332112:
[…]
One thing I did wonder about, though: was there a particular reason why you didn’t put the author name in a custom field, and then use that to filter the book / author lists?
[…]
For simplification to the client. There are already enough, a lot of custom fields in use (the sign @ do not affect permalinks structure, otherwise it was a bad choice).
Last edited by Pat64 (2021-12-07 13:07:02)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline