TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] plugin.tx_...

This is a discussion on [TYPO3] plugin.tx_... within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Could someone give me a pointers of where I can find documentation that would explain: 1) How, as an administrator, ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 19.08.2008, 04:06
Alessandro Vernet
Gast
 
Beiträge: n/a
Standard [TYPO3] plugin.tx_...

Could someone give me a pointers of where I can find documentation that would
explain:

1) How, as an administrator, you can setup plugin configuration properties
of the form plugin.tx_EXT_pi1.PROP.
2) How, as a plugin author, you can get the values of those properties.

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

--
View this message in context: http://www.nabble.com/plugin.tx_...-...p19043210.html
Sent from the TYPO3 English mailing list archive at Nabble.com.

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 19.08.2008, 09:27
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] plugin.tx_...

Hi!

Alessandro Vernet wrote:
> Could someone give me a pointers of where I can find documentation that would
> explain:
>
> 1) How, as an administrator, you can setup plugin configuration properties
> of the form plugin.tx_EXT_pi1.PROP.
> 2) How, as a plugin author, you can get the values of those properties.


typo3.org has a tutorial on extension creation. Or wait a month for my book.

--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book
In the blog: http://typo3bloke.net/post-details/t...ng_in_eclipse/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 19.08.2008, 19:35
Alessandro Vernet
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] plugin.tx_...

Hi Dmitry,


Dmitry Dulepov [typo3] wrote:
>
> typo3.org has a tutorial on extension creation. Or wait a month for my
> book.
>


Are you referring to this tutorial:

http://typo3.org/documentation/docum....0.8/view/1/2/

The plugin defined in this tutorial (player_profile) seems to be using a
"preference" there: $plugin.player_profile.maxW_single. A default value of
70 is defined in ext_typoscript_constants.txt. But the tutorial doesn't seem
to cover (maybe this is out of scope?

1) How to access the value of this property in PHP code?
2) How, as an administrator, to set the value of this property for a certain
hierarchy of pages.

Any idea?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

--
View this message in context: http://www.nabble.com/plugin.tx_...-...p19055104.html
Sent from the TYPO3 English mailing list archive at Nabble.com.

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 19.08.2008, 21:42
Alessandro Vernet
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] plugin.tx_...

I found an answer to the first question, in case this can be useful to others
here:


Alessandro Vernet wrote:
>
> 1) How to access the value of this property in PHP code?
>


Use: $this->conf['PARAM'])
This is in function main($content,$conf), after doing $this->conf=$conf.

In ext_typoscript_setup.txt:

plugin.tx_EXT_pi1 {
PARAM =
}

After doing those changes, you might need to do a "Clear cache in typo3conf"
in the Admin UI.

(There is a "new way" of doing this described here:
http://www.nabble.com/Javascript-Hea...html#a11214518)

The plugin ve_guestbook is an example of plugin that does this:
http://typo3.org/extensions/reposito...estbook/2.7.1/

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

--
View this message in context: http://www.nabble.com/plugin.tx_...-...p19057244.html
Sent from the TYPO3 English mailing list archive at Nabble.com.

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 20.08.2008, 08:43
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] plugin.tx_...

Hi!

Alessandro Vernet wrote:
> Are you referring to this tutorial:
>
> http://typo3.org/documentation/docum....0.8/view/1/2/


Yes.

> The plugin defined in this tutorial (player_profile) seems to be using a
> "preference" there: $plugin.player_profile.maxW_single. A default value of
> 70 is defined in ext_typoscript_constants.txt. But the tutorial doesn't seem
> to cover (maybe this is out of scope?


This approach is dated You should use kickstarter, which generates more modern approach.

> 1) How to access the value of this property in PHP code?


If you have this TS:

plugin.tx_myext_pi1 = USER
plugin.tx_myext_pi1 {
a = b
a {
c = e
}
}

you can access properties as:

$a = $this->conf['a'];
$c = $this->conf['a.']['c']; // Notice period after "a"!

> 2) How, as an administrator, to set the value of this property for a certain
> hierarchy of pages.


Use Web>Template, "Constant editor" there. There is a box at the top where you can select a set of constants.

--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book
In the blog: http://typo3bloke.net/post-details/s...d_in_the_code/
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 21.08.2008, 23:59
Alessandro Vernet
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] plugin.tx_...

Dmitry,


Dmitry Dulepov [typo3] wrote:
>
> If you have this TS:
>
> plugin.tx_myext_pi1 = USER
> plugin.tx_myext_pi1 {
> a = b
> a {
> c = e
> }
> }
>


Thank you for this information; this is really very helpful!

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/

--
View this message in context: http://www.nabble.com/plugin.tx_...-...p19097762.html
Sent from the TYPO3 English mailing list archive at Nabble.com.

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] TE Openemm_Newsletter plugin prateek sharma typo3-english@lists.netfielders.de 0 24.07.2008 12:27
[TYPO3-german] Plugin Konfiguration aus FE-Plugin heraus setzen Adler, Jesse typo3-german@lists.netfielders.de 1 03.09.2007 20:53
[TYPO3-dev] howto display a record from another plugin in myfe-plugin? Markus Schorer typo3-dev@lists.netfielders.de 2 14.05.2007 18:34
[TYPO3-dev] Trying to add a field to plugin in BE Brian Bendtsen typo3-dev@lists.netfielders.de 0 12.04.2007 11:52
[TYPO3-dev] FE-Plugin and Popup Steffen Kamper typo3-dev@lists.netfielders.de 3 07.12.2006 17:14


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:35 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39