[TYPO3-english] Inserting content programatically

Sergey Alexandrov serg at alexandrov.us
Wed Nov 2 19:31:35 CET 2011


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