
So I’m doing a custom user function(php script) in TYPO3 cms, I’m fetching data with sql, what I’m trying to do is fetch all of the content from one page.
I can easily do that by fetching data from tt_content with pid of the page, but what is the db relation between say that one plugin content elemenet(element under 1 in picture) and text&img content element (element under 2 in picture)?
How do I link them in DB so I know that they are both under Google map container?
Many thanks!
TemplaVoila stores
tt_contentuids (and their order) in tablepages– in fieldtx_templavoila_flex, it’s standard XMLTo fetch all elements from given page you need to fetch that XML and read value with
vDEFindex from required column (as a common XML node). Uid’s oftt_contentelements are comma divided, so when you’ll read ths node you just need to use explode by comma to get an array in proper order. sample:You can check how to work with these XML structures in… TemplaVoila source code, for an example it’s probably easiest to convert the XML to PHP array:
@see:
typo3conf/ext/templavoila/class.tx_templavoila_api.phpline #1362