StructuredDataNodeAPIAdapter questions
I have two questions:
-
When working with a
StructuredDataNodeAPIAdapter
object, is there a way to tell whether the corresponding node is a multiple node? It is not possible to find the answer by checking the number of nodes bearing the identical identifier, because a multiple field in the data definition can have a single instantiated node in the structured data. -
is the
getGroup()
method identical togetChildren()
?
Thanks,
Wing
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Wing Ming Chan on Oct 26, 2015 @ 01:08 PM
Ryan,
It seems that I no long have access to the private Cascade CMS Ideas. Would you please help me with this?
Thanks,
Wing
2 Posted by Ryan Griffith on Oct 26, 2015 @ 01:58 PM
Hi Wing,
Unfortunately, it is not currently possible to determine if the field is configured to be multiple. As you mentioned, the only way at the moment would be to use
getStructuredDataNodes("identifier")
and checksize()
, but that won't be accurate if the multiple field only has one instance.Do you have a specific use case for adding the property?
These methods are identical. The
getChildren()
method was added in 7.6 as part of a set of API improvements. Additionally, thegetGroup()
method was deprecated in favor ofgetChildren
, because the newer method aligns better with the other methods that were added as part of the improvement.Strange, but we do see this from time to time with the UserVoice system which generally clears up with a re-invitation. Before I go ahead and re-invite you, I was looking at the audits and noticed a
[email blocked]
email address as being active today. Can you confirm you have the correct email address entered when logging in?Please let me know if you have any questions.
Thanks!
3 Posted by Wing Ming Chan on Oct 26, 2015 @ 02:13 PM
Ryan,
Thank you for the info. I will refrain from using
getGroup
then.I am fine now with Idea Exhange. I don't know why I could not access it earlier.
Wing
4 Posted by Ryan Griffith on Oct 26, 2015 @ 02:21 PM
Thank you for following up, Wing, I am glad to hear you were able to log in successfully.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on Oct 26, 2015 @ 02:21 PM.