Hi,
I’m not really php dev, but need to add some functionality I can’t get directly (I mean not in a universal way).
I’m using the multilingual system ( see here if interested :
http://modxcms.com/forums/index.php/topic,29597.30.html ), meaning there are pages in different language parent folder.
At each moment we know what is the current language (the current $LanguageID wich is also an place holder)
goal: find a
children document of $LanguadeID folder, where the TV named $languageIdentifier will be = "some-known-value"
I’m trying to use the API function into the language snippet.
// getDocumentChildrenTVars($parentid, $tvidnames, $published, $docsort, $docsortdir, $tvfields, $tvsort, $tvsortdir);
$cat_page = $modx->getDocumentChildrenTVars($LanguageID,,,,,$languageIdentifier,,);
I don’t understand how to use getDocumentChildrenTVars and there’s no example in the wiki.
Could some one help ?
Thank you