Folgende Formularwerte sind definiert:
<CMS_INPUT_TEXT name="st_id" hFill="yes" maxInputLength="512" singleLine="no" useLanguages="no">
<LANGINFOS>
<LANGINFO lang="*" label="YouTube ID"/>
</LANGINFOS>
</CMS_INPUT_TEXT>
<CMS_INPUT_LINK name="st_endcard_link" allowEmpty="yes" hFill="yes" useLanguages="no">
<LANGINFOS>
<LANGINFO lang="*" label="Endcard Link"/>
</LANGINFOS>
<LINKEDITORS>
<LINKEDITOR name="lt_intern_yt_endcard"/>
<LINKEDITOR name="lt_extern_yt_endcard"/>
</LINKEDITORS>
</CMS_INPUT_LINK>
Und in lt_intern_yt_endcard gibt es die Formularvariable:
<FS_REFERENCE name="lt_link" allowEmpty="yes" hFill="yes" useLanguages="no">
<LANGINFOS>
<LANGINFO lang="*" label="Interner Verweis"/>
</LANGINFOS>
<PROJECTS>
<LOCAL name=".">
<SOURCES>
<FOLDER name="root" store="sitestore"/>
</SOURCES>
</LOCAL>
</PROJECTS>
</FS_REFERENCE>
In der übergeordeneten Seitenvorlage möchte ich auf die Formularwerte zugreifen. Für st_id ist es einfach:
$CMS_IF(!#global.page.body("content").isEmpty)$
$CMS_FOR(for_section,#global.page.getBodyByName("content").getChildren)$
$CMS_IF(isSet(for_section))$
$CMS_IF(!for_section.isEmpty && !for_section.template.isEmpty)$
$CMS_IF("st_videoplayer_yt".equals(for_section.template.Uid))$
$CMS_VALUE(for_section.formData.get(#global.language, "st_id").get())$
$CMS_END_IF$
$CMS_END_IF$
$CMS_END_IF$
$CMS_END_FOR$
$CMS_END_IF$
Wie greife ich jetzt über die FS Api auf den Wert von st_endcard_link.lt_link zu?