Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<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?
Offline
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
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>.
Offline
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