Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2017-03-22 19:49:33
- alicson
- Member
- Registered: 2004-05-26
- Posts: 465
- Website
Re: Including article body inside another article
michaelkpate wrote #304942:
I actually think, though, these might be useful tags to add to 4.7.
Cheers to new useful tags.
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#32 2017-03-23 08:59:08
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,048
- Website
Re: Including article body inside another article
michaelkpate wrote #304942:
I actually think, though, these might be useful tags to add to 4.7.
Would something like this do?
<txp:link_to_next>
<!-- article tags are populated with the next article data -->
<h3><txp:title /></h3>
<txp:excerpt />
...
</txp:link_to_next>
Offline
#33 2017-03-23 10:24:34
- jakob
- Admin
- From: Germany
- Registered: 2005-01-20
- Posts: 4,026
- Website
Re: Including article body inside another article
etc wrote #304992:
Would something like this do?
I like your idea of making more content available to the existing tag. There are situations where you want to preview the next article with an image or perhaps some custom_field info.
Thinking aloud, would it be possible/useful to also add an optional attribute to the link_to_next
to constrain next/prev to a particular criterion? I admit I haven’t thought it through.
TXP Builders – finely-crafted code, design and txp
Offline
#34 2017-03-23 10:34:47
- Bloke
- Developer
- From: Leeds, UK
- Registered: 2006-01-29
- Posts: 9,973
- Website
Re: Including article body inside another article
jakob wrote #304995:
Thinking aloud, would it be possible/useful to also add an optional attribute to the
link_to_next
to constrain next/prev to a particular criterion?
You mean, like smd_horizon? If so, yeah, that’d make my hacky plugin obsolete, which is good in my book.
Next article in category xyz, next article in section abc, next article with custom_field book_title, …
Last edited by Bloke (2017-03-23 10:37:42)
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
#35 2017-03-23 14:20:05
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,048
- Website
Re: Including article body inside another article
jakob wrote #304995:
I like your idea of making more content available to the existing tag. There are situations where you want to preview the next article with an image or perhaps some custom_field info.
This one is committed now, invalidating (but superseding) Mickael plugin in 4.7.
Thinking aloud, would it be possible/useful to also add an optional attribute to the
link_to_next
to constrain next/prev to a particular criterion?…
Next article in category xyz, next article in section abc, next article with custom_field book_title, …
This one is internally more tricky and would make link_to_
another article_custom
clone. Doable, but needs some thinking.
Offline
#36 2017-03-23 16:32:13
- michaelkpate
- Moderator
- From: Avon Park, FL
- Registered: 2004-02-24
- Posts: 1,340
- Website
Offline