chetankj
8 years agoVisitor
Unable to create sections in MarkUpList
Hi,
Can anybody tell me how to create sections with markupList. I tried creating sections Root child having CONTENTTYPE = "SECTION", it does not work.
Here is the code i tried, which loads the data but does not show Sections
content = createObject("RoSGNode","ContentNode")
contentChild0 = content.createChild("ContentNode")
contentChild1 = content.createChild("ContentNode")
contentChild2 = content.createChild("ContentNode")
contentChild0.title = "section1"
contentChild0.CONTENTTYPE = "SECTION"
contentChild0.appendChild(CHILDREN OBJECT)
contentChild1.title = "section2"
contentChild1.CONTENTTYPE = "SECTION"
contentChild1.appendChild(CHILDREN OBJECT)
contentChild1.appendChild(CHILDREN OBJECT)
contentChild2.title = "section3"
contentChild2.CONTENTTYPE = "SECTION"
contentChild2.appendChild(CHILDREN OBJECT)
Is this the right way to create sections? Is there anything i am doing wrong?
Thanks
Can anybody tell me how to create sections with markupList. I tried creating sections Root child having CONTENTTYPE = "SECTION", it does not work.
Here is the code i tried, which loads the data but does not show Sections
content = createObject("RoSGNode","ContentNode")
contentChild0 = content.createChild("ContentNode")
contentChild1 = content.createChild("ContentNode")
contentChild2 = content.createChild("ContentNode")
contentChild0.title = "section1"
contentChild0.CONTENTTYPE = "SECTION"
contentChild0.appendChild(CHILDREN OBJECT)
contentChild1.title = "section2"
contentChild1.CONTENTTYPE = "SECTION"
contentChild1.appendChild(CHILDREN OBJECT)
contentChild1.appendChild(CHILDREN OBJECT)
contentChild2.title = "section3"
contentChild2.CONTENTTYPE = "SECTION"
contentChild2.appendChild(CHILDREN OBJECT)
Is this the right way to create sections? Is there anything i am doing wrong?
Thanks