TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] renderObj and custom script

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: ...


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 16.01.2008, 08:55
Bartosz Aninowski
Gast
 
Beiträge: n/a
Standard [TYPO3] renderObj and custom script

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
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 16.01.2008, 11:42
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

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
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 16.01.2008, 14:10
Bartosz Aninowski
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

> 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
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 16.01.2008, 14:25
Tyler Kraft
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

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
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 16.01.2008, 16:15
Bartosz Aninowski
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

> 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
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 16.01.2008, 16:47
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

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
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!
  #7  
Alt 18.01.2008, 20:03
Bodo Eichstädt
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] renderObj and custom script

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
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-german] <script bla> in RTE wird später im HTML zu &lt;script bla&gt; 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


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:00 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