Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-26 17:10:30

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

<txp:text />, wich is the purpose of this little shy tag?

Hi,
I have discovered this one recently. There is <a href=“http://textpattern.net/wiki/index.php?title=Txp:text_/”>documentation</a> about it.

But I can figure out the purpose of this plug-in.

Why will I need to use it if I can simple add the text without using txp:text?

I mean, it’s the same to do
<code><txp:text item=“ILoveTXP”></code> -> returns: ILoveTXP

than just simple writing:
ILoveTXP.

or am I wrong?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2005-10-26 18:24:41

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: <txp:text />, wich is the purpose of this little shy tag?

It is used to return localized language strings. You give it the key, it returns the value in the current language. If no value is found, it returns the key.

Offline

#3 2005-10-26 19:04:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: <txp:text />, wich is the purpose of this little shy tag?

Ooh, that is nice! If I understand this correctly, you could add some user specific, often used, strings to the language file and call them with <txp:text item="..." /> whenever you like. I can see a use for that…

Offline

#4 2005-10-26 19:17:26

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: <txp:text />, wich is the purpose of this little shy tag?

Sencer, thanks for replying.

Aaaaah, finally I get it… hihihi, thx

For something like <code><txp:text item=“name” /></code> it will return “Nombre”.
What a dumb question did I ask…
but it “inspired” me to write <a href=“http://forum.textpattern.com/viewforum.php?id=12”>this suggestion for forum category</a>.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2005-10-27 09:29:21

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: <txp:text />, wich is the purpose of this little shy tag?

I didn’t know that. Nice.

Offline

#6 2005-10-27 14:30:22

davidm
Member
From: Paris, France
Registered: 2004-04-27
Posts: 719

Re: <txp:text />, wich is the purpose of this little shy tag?

Yeah that’s pretty cool !

I feel like I am discovering easter-eggs in txp…


.: Retired :.

Offline

#7 2005-10-27 17:40:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:text />, wich is the purpose of this little shy tag?

> “…easter-eggs in txp…”

Thinks mischievous thoughts…

Offline

Board footer

Powered by FluxBB