I find myself struggling with some of Structure's documentation and cannot find an answer via Google either, here's the skinny:
Currently have 2 top level "pages" (2 more but are hidden because I dont need them in the nav list). Each of these have children pages and everything is dandy and working.
Top Level Page1 - overview template / Channel1
+ Child Page -- Display template / Channel2
+ Child Page -- Display template / Channel2
Top Level Page2 - overview template / Channel1
+ Child Page -- Display template / Channel2
+ Child Page -- Display template / Channel2
I now need to take those 2 "top" level pages and insert them into a select dropdown for some JS sorting on a page that isn't managed by Structure, like this:
Project Overview -- show all entries template - Channel2
{exp:channel:entries}
// Works well, spits out Channel2 data no prob
//This is what I need
<option value="{structure:parent:id}">structure:parent:name</option>
Have tried:
{exp:structure:nav start_from="/" max_depth="1"}
<option value="{page_uri}">{title}</option>
{/exp:structure:nav}
//This code works well in nav
This yields nothing (blank code), the docs allude that using :nav sets an li which I dont want & likely causing nothing to output.
I expect because Structure isn't managing the "projects" page, finding a parent or anything to do with normal exp:channel:entries
tag is the roadblock.
Thought about adding Top Level pages as children of a new 'parent' but then I'd have another list item in the main nav which we dont want.
Totally stumped :(