[TYPO3-english] Inserting content programatically
Philipp Gampe
typo3.lists at philippgampe.info
Wed Nov 2 20:40:22 CET 2011
Sergey Alexandrov wrote:
> Maybe smt like this (not sure, haven't tried :))
>
> page_content = COA
> page_content {
> // Main content
> 10 = CONTENT
> 10 < styles.content.get
>
> // additional stuff
> 20 = CONTENT
> 20 {
> table = tt_content
> select {
> andWhere.insertData=1
> andWhere=pid={GPvar:other}
andWhere.intval = 1
Otherwise you have an SQL injection:
http://xkcd.com/327/
> andWhere.if.isTrue.data=GPvar:other
andWhere.if.isTrue.data.intval = 1
Just to be save.
> }
>
> }
>
>
>
> On 11/2/2011 2:02 PM, Gonzalo Henriquez wrote:
>> Hi list!
>>
>> I would much appreciate your help on this: I need to insert content from
>> certain page in the site tree into another page in another place in the
>> same site tree.
>>
>> The idea is to determine what content to load from a get var, as in
>>
http://www.example.com/index.php?id=CurrentPage&other=PageIdToLoadContentFrom
>>
>> I've been looking at the CONTENT object without any real results. ¿Any
>> ideas?
>>
>> Thanks in advanced
>> Gonzalo
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
--
Philipp Gampe
More information about the TYPO3-english
mailing list