Quote from: Dimmy at Nov 16, 2006, 07:07 AM
I got the folloing error using a cobination of getField and SectionRoots this way:
[!GetField? &docid=[[SectionRoots?Sec_roots=7,41,46,70,80,85]]!]
Which version of GetField do you use?
I haven’t used SectionRoots, however, it looks like you are trying to get a pagetitle of a parent document. The root document for a section, actually.
You can do it easily with GetField alone. You just have to make a call like that:
[!GetField? &parent=`1`!]
This will return a pagetitle of the ultimate parent of the current document. The ultimate parent is the topmost document in the document tree, which is current document’s ancestor. In other words, the document in the root of the document tree, which is in the same branch as the current document.
If your sections sit under a specific folder then you should provide
&topid parameter with id of that folder.