[TYPO3-dev] Creating pages in Typo3 with external script
Stefan Neufeind
typo3.neufeind at speedpartner.de
Mon Feb 10 10:10:54 CET 2014
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
More information about the TYPO3-dev
mailing list