[TYPO3-dev] Re: TypoScript DataProcessors
David Bruchmann
david.bruchmann at gmail.com
Thu Dec 8 16:00:27 CET 2016
The important snippet you posted is this:
pidInList {
dataWrap = DB:pages:{field:related_page}:pid
wrap3 = {|}
insertData=1
}
try inserting first statically a list of pids like:
pidInList = 3,4,5,6
The pids you insert in my example surly must represent pages with fitting data for that case.
If this is working you can think about filling this variable dynamically.
If you get the pids from user-input you should respect the security guide https://docs.typo3.org/typo3cms/SecurityGuide/GuidelinesIntegrators/Typoscript/Index.html
so in your case between the brackets should be placed "intval = 1" else your database could be in danger being hacked.
More information about the TYPO3-dev
mailing list