Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
txp:related_articles outputs label ("Related Articles")
I have this code in txp 4.9 beta:
<txp:related_articles break="" section='<txp:section link="0" title="0" />' sort="LastMod DESC">
.....<div class="resource-card <txp:category1 />">
..........<p class="category"><txp:category1 /></p>
..........<p><strong><a href="<txp:permlink />"><txp:title /></a></strong><br>
..........<txp:meta_description format="" /></p>
..........<p>Updated <txp:modified format="since" /> ago.</p>
.....</div>
</txp:related_articles>
(Leading periods just so the code would look nice.)
It generates the label “Related Articles” even though the label is unset:
Is this a bug? Or am I using the related_articles tag wrong?
Last edited by agovella (Today 04:24:00)
Offline
Re: txp:related_articles outputs label ("Related Articles")
The default is Related Articles. Set label=""
to silence it. But I wouldn’t expect it to output the label if used as a container. Hmmmm.
Last edited by Bloke (Today 06:08:37)
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
Re: txp:related_articles outputs label ("Related Articles")
Bloke wrote #339903:
The default is Related Articles.
Docs says: “Default: unset”. Hmm,I would expect no label in that case.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: txp:related_articles outputs label ("Related Articles")
Hmmm, then something has gone wonky. This may be a by-product of tweaking the global label
attribite so may well affect other tags.
Good catch. We’ll investigate.
Last edited by Bloke (Today 08:06:56)
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