Hello,
I'm struggling to find a way to get selected section template from the remote link.
The idea is to allow the selection of a page and a section, from any remote project, and then to display only selected section in the html channel.
Here is the Form:
<FS_REFERENCE name="st_ref" hFill="yes" sections="yes" useLanguages="no">
<FILTER>
<HIDE type="all"/>
<ALLOW type="pageref"/>
<ALLOW type="pagereffolder"/>
<ALLOW type="sectiontemplate"/>
</FILTER>
<LANGINFOS>
<LANGINFO lang="*" label="Ziel"/>
<LANGINFO lang="EN" label="Target"/>
</LANGINFOS>
<PROJECTS>
<REMOTE name="RemoteProjectOne">
<SOURCES>
<FOLDER name="root" store="sitestore"/>
</SOURCES>
</REMOTE>
<REMOTE name="RemoteProjectTwo">
<SOURCES>
<FOLDER name="root" store="sitestore"/>
</SOURCES>
</REMOTE>
<REMOTE name="RemoteProjectThree">
<SOURCES>
<FOLDER name="root" store="sitestore"/>
</SOURCES>
</REMOTE>
</PROJECTS>
</FS_REFERENCE>
I tried with $CMS_VALUE(st_ref.getSection())$ method and it doesn't return anything, but when I check it if it is empty with $CMS_VALUE(st_ref.getSection().isEmpty())$ it returns false.
So does this means that the section exists but it is just not displayed? What am I missing here? Or is there any other way to do this?
Thanks in advance.