Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-11-02 01:36:16

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

txp:text... Where to set???

Hello,

<txp:text item="go_content" />

Where are the text item variables set?

I am sure this is soooo obvious, but I just am not seeing the answer.

This looks like a useful thing though… :)

Last edited by mhulse (2007-11-02 01:40:07)

Offline

#2 2007-11-02 07:26:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: txp:text... Where to set???

txp:text is one of those few tags I never quite understood:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-11-02 07:29:39

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

Re: txp:text... Where to set???

It outputs lang strings from the database (which enable us to have Txp available in multiple languages).

Offline

#4 2007-11-02 07:45:21

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: txp:text... Where to set???

The example in the textbook is still too abstract for me. How can the tag be used in ‘real’ life?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-11-02 08:33:38

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

Re: txp:text... Where to set???

Well, it is used in a couple of the default forms, for example.

Offline

#6 2007-11-02 21:43:34

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: txp:text... Where to set???

Hi colak and Mary,

Many thanks for you quick replies, I really appreciate the help and attention. :)

Hmm, interesting. New questions:

  • Is there a list of all available txp:text variables? (Would this be best described as constant variables?)
  • Is it possible to create my own text constants?

Sorry if I am still not fully understanding.

I can also see how this feature would be helpful in situations other than language translations (that is, if I can set my own text variables.)

I am kinda reminded of Expression Engine’s global variables… Via the template and/or path.php file.

Thanks! :)
Cheers,
Micky

Last edited by mhulse (2007-11-02 21:43:50)

Offline

#7 2007-11-02 22:17:56

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: txp:text... Where to set???

mhulse wrote:

Hi colak and Mary,

Many thanks for you quick replies, I really appreciate the help and attention. :)

Hmm, interesting. New questions:

  • Is there a list of all available txp:text variables? (Would this be best described as constant variables?)
  • Is it possible to create my own text constants?

Sorry if I am still not fully understanding.

I can also see how this feature would be helpful in situations other than language translations (that is, if I can set my own text variables.)

I am kinda reminded of Expression Engine’s global variables… Via the template and/or path.php file.

Thanks! :)
Cheers,
Micky

they are set in the txp_lang table of your database. not sure how you’re planning on approaching it though…wouldn’t the exact same thing be accomplished by using forms? have your ‘constant’, ‘global’ text in a form and then just output that form wherever you need it?

Offline

#8 2007-11-03 01:17:55

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

Re: txp:text... Where to set???

Is there a list of all available txp:text variables? (Would this be best described as constant variables?)

There’s no listing anywhere I know of.

Is it possible to create my own text constants?

I can also see how this feature would be helpful in situations other than language translations (that is, if I can set my own text variables.)

I am kinda reminded of Expression Engine’s global variables… Via the template and/or path.php file.

No.
That’s not what it is intended for. :) As already pointed out, you can use forms.

Offline

#9 2007-11-03 05:39:49

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: txp:text... Where to set???

Whoa, I was going to list the available txp:text variables in this thread, but it looks like 35 pages via phpMyAdmin.

Forms sounds good to me. :)

Thanks all for the info, I really appreciate it.

Have great day/night.
Cheers,
Micky

Last edited by mhulse (2007-11-03 05:40:18)

Offline

Board footer

Powered by FluxBB