I was wondering if anyone knew a solution to the problem I'm having.
I have found some code that does exactly as I want, please see below.
and then displaying
<ul><?php js_list_pages_include_tree('include_tree=10'); ?></ul> in the page.
This code can be found Here!
How would I amend this funtion so that the main pages are links as well? If anyone could help me with this that would be great.
I'm also looking to style this but I'm guessing I can style the main page list as norm and for the children if I add a class to the list in the function, I can style this from here?
Thanks in advance