Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 04:23:43

agovella
Member
From: Houston, TX
Registered: 2005-05-01
Posts: 75
Website Twitter

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

#2 Today 06:07:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,813
Website GitHub

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

#3 Today 06:24:15

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,399
Website

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

#4 Today 08:05:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,813
Website GitHub

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

Board footer

Powered by FluxBB