Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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_nextto 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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
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_nextto 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
Offline