Working on a Sitecore 6.6 build I'm allowing authors to create items with the following structure:
- AAA
- BBB
- CCC
- CCC
- BBB
- CCC
- CCC
- BBB
Here AAA, BBB, CCC are different templates. Notice that AAA allows items of BBB or CCC, and BBB only allows CCC.
I now require a link field on a template with source root set to AAA, where the author may only select a single item of template CCC. But crucially I want the 'folder' structure (defined by BBB) to be preserved visually.
I can't use a DropLink because the item list is flattened.
As far as I can tell I can't use a DropTree because I can't stop the author selecting items of type BBB.
If I was offering a multi-select I could use a TreeList with a DataSource and work with its paramters (ExcludeTemplatesForSelection etc). But I only want a single item selected.
It would appear that Grouped DropLink is exactly what I'm looking for but it appears to be buggy. I may be misunderstanding though so your guidance would be much appreciated. The query below looks correct to me but presents a strange list of options where some items of BBB are selectable.
query:/sitecore/content/home/AAA//*[@@templateid='{CCC}']
Help much appreciated.