Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I want to store the form data in the database using the SaveToDatabaseFinisher. The data should be assigned to the page, where the form Plugin is placed on and I don't know how to find the pid of the current page. In every example I found, the pid was always hard coded in the yaml file.

I tried {pid} and {__pid} without any success. So how to get the current page's id (pid) to store it in the database (in TYPO3 8.7)? Or is it only possible in a later T3 release?

  ...
  databaseColumnMappings:
    pid:
      value: '{__pid}'
    tstamp:
      value: '{__currentTimestamp}'
  elements:
    ...

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.2k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...