Die TYPO3 Mailingliste - nicht fragen: lesen!
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, ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| 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 |