[TYPO3-english] Inserting content programatically
Gonzalo Henriquez
ghenriquezv at gmail.com
Wed Nov 2 20:00:29 CET 2011
Thanks for the quick reply Sergey. I tried it first with no luck.
Here's what I have:
page_content = COA
page_content {
10 = CONTENT
10 < styles.content.get
20 = CONTENT
20 {
table = tt_content
select {
where = colPos=0
andWhere.insertData = 1
andWhere=pid = {GPvar:other}
andWhere.if.isTrue.data = GPvar:other
orderBy = sorting
}
}
}
...
temp.mainTemplate.subparts.content < page_content
...
page.10 < temp.mainTemplate
Is that the proper way of using what you suggested?
Thanks a lot.
Gonzalo
On Wed, Nov 2, 2011 at 3:31 PM, Sergey Alexandrov <serg at alexandrov.us> 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.if.isTrue.data=GPvar:other
> }
>
> }
>
>
>
> 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
More information about the TYPO3-english
mailing list