Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Nested Replicatable Datum Group?
bbasie
I am trying to create a nested replicatable group that has 2 datums in it. This wont validate when I try to save. Is there something wrong with my code?
I've put comments around the group and 2 datums I would like to replicate. Any help would be appreciated!
Here is my code:
{Data}
{Datum ID="heading" Name="Main Heading" Type="String"}Hot Advocacy Topics{/Datum}
{Group ID="topics" Name="Topics" Replicatable="true"}
{Datum ID="topictitle" Name="Topic Title" Type="String"}Accountable Care Organizations{/Datum}
{!--how to replicate these as a group?--}
{Group ID="Article" Name="Article" Replicatable="true"}
{Datum ID="articletitle" Name="Article Title" Type="String"}Link 1{/Datum}
{Datum ID="articlelink" Name="Article Link" Type="PageLink"}{![CDATA[#]]}{/Datum}
{/Group}
{!--END how to replicate these as a group?--}
{/Group}
{/Data}
Find more posts tagged with
Comments
Rick Poulin
RTFM -- SitePub Dev Guide, p56 (7.2.1) > "Nested groups are not supported; that is, a <Group> element can contain <Datum> elements, but a <Datum> element cannot contain <Group> elements, and a <Group> element cannot contain other <Group> elements."
You'll have to rethink your design and/or capture your data in DCRs and refer to them with a DCR datum.