[TYPO3-dev] Creating pages in Typo3 with external script

Alexander Födisch foedisch at eva.mpg.de
Mon Feb 10 10:21:21 CET 2014


Ok, I found this for doktype: 
http://lists.typo3.org/pipermail/typo3-project-documentation/2010-January/002461.html



Am 10.02.2014 10:10, schrieb Stefan Neufeind:
> On 02/10/2014 10:08 AM, Alexander Födisch wrote:
>> Hi,
>>
>> how can I create pages scripted with SQL-statements?
>>
>> I need to create for example page1-page4:
>>
>> page-already-exists
>>      |-page1
>>              |-page2
>>              |-page3
>>              |-page4
>>
>>
>> Createing a page is quite easy:
>>      INSERT INTO pages (title) VALUES ('<title>');  (of course we have to
>> set also other values like timestamps, crdate.....)
>>
>> But how does Typo organize the relationship/assignment of pages and
>> their subpages?
> Their parent-pade is given in the column "pid". The new page is just a
> record that is placed "on the parent-page".
> Also note the sorting-number to properly order your pages.
>
>
> Kind regards,
>   Stefan
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev




More information about the TYPO3-dev mailing list