Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] renderObj and custom script within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi Can you point me to some how-to? I want to use renderObj with my custom php script fg: ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi
Can you point me to some how-to? I want to use renderObj with my custom php script fg: includeLibs.select_records = fileadmin/user_some.inc my.renderObj = USER my.renderObj.userFunc = user_some->select_records my.renderObj { 10 = TEXT 10.field.someFiled1 20 = TEXT 20.field.someFiled2 } What exaclly my functions select_records should return and if it possible at all? _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi!
Bartosz Aninowski wrote: > includeLibs.select_records = fileadmin/user_some.inc > my.renderObj = USER > my.renderObj.userFunc = user_some->select_records > my.renderObj { > 10 = TEXT > 10.field.someFiled1 > > 20 = TEXT > 20.field.someFiled2 > } > > What exaclly my functions select_records should return and if it possible at > all? It should return HTML. Take a look to TSRef for format and parameters. Normaly it is like this: function aaa($content, $conf) { return '<p>Hello, world!</p>'; } -- Dmitry Dulepov TYPO3 core team Web: http://typo3bloke.net/ Skype: callto:liels_bugs "Nothing is impossible. There are only limits to our knowledge" _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
> function aaa($content, $conf) {
> return '<p>Hello, world!</p>'; > } I think we misunderstood. I want do exaclly the same as object CONTENT do. Select records from mysql then render it with renderObj. I dont want to put any html tag inside php script _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Then why not just use a CONTENT item, instead of a function?
Bartosz Aninowski wrote: >> function aaa($content, $conf) { >> return '<p>Hello, world!</p>'; >> } > > I think we misunderstood. > I want do exaclly the same as object CONTENT do. > Select records from mysql then render it with renderObj. > I dont want to put any html tag inside php script > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
> Then why not just use a CONTENT item, instead of a function?
because of more complex sql select _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Hi!
Bartosz Aninowski wrote: >> Then why not just use a CONTENT item, instead of a function? > > because of more complex sql select Then look in the core how it is implemented It is open source ![]() -- Dmitry Dulepov TYPO3 core team Web: http://typo3bloke.net/ Skype: callto:liels_bugs "Nothing is impossible. There are only limits to our knowledge" _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Bartosz Aninowski schrieb:
>> Then why not just use a CONTENT item, instead of a function? > > because of more complex sql select > > I can give you my EXT. It's compatible with CONTENT so you can replace CONTENT with small changes. But beside that: - stdWrap on all parts of SQL select (table, where, addWhere, orderBy, LIMIT, JOINs, ...) - can use HTML Template, Template + TS or pure TS - you can set defaults with page TS plus configure a sysfolder with sys_template records that non-admin BE-User can choose from plus override all setting via Flexform No doc but just take TSRef, add stdWrap, I send some examples too. Anyone interested? Bodo _______________________________________________ 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-german] <script bla> in RTE wird später im HTML zu <script bla> | Ferdiand Froberg | typo3-german@lists.netfielders.de | 2 | 24.11.2007 15:23 |
| [TYPO3] CONTENT, renderObj and isTrue | Lukas Mattsson | typo3-english@lists.netfielders.de | 3 | 10.10.2007 13:12 |
| [TYPO3-ttnews] HTML in subheader_stdWrap.crop = 500 |...<script>alert('....')</script> | 1 | michiel zoer | typo3-project-tt-news@lists.netfielders.de | 1 | 30.07.2007 22:30 |
| [TYPO3-templavoila] Script element with TV | Paul | typo3-project-templavoila@lists.netfielders.de | 0 | 23.04.2007 23:18 |
| [TYPO3-german] Probleme beim wrappen des renderObj | Zueckert | expeer GmbH | typo3-german@lists.netfielders.de | 2 | 18.01.2007 16:03 |