Project

General

Profile

child_pages question?

Added by filippo mandelli about 6 years ago

I have this condition: in a wiki pages I add "child_pages" in order to create an automatic tree view:

But in pages "+Inverter1" and "+Inverter2", I include pages from another progect "child_pages(Common Functions:+InverterSK)"
In the tree view I don't see sub pages.
Can someone help me?


Replies (4)

RE: child_pages question? - Added by Anonymous about 6 years ago

Check for the child pages really being child pages, i.e. go to "rename" (I think here the hierarchy is "hidden") and check for the parent page entry.

For creating child pages there are two ways:

  • if you create a page by entering a new link within a current page, this current page automatically becomes the parent
  • if you just create a "new" wiki page, there is no parent set. Go to rename and set the parent manually as desired.

Rename (DE: "umbenennen") is also the menu option to move a wiki page to an other project.

Hope this helps

Cheers

RE: child_pages question? - Added by filippo mandelli about 6 years ago

Thank you Alex.

In my case I try to use macro:

include(Common Functions:+InverterSK)

inside the pages "+Inverter1" and "+Inverter2" and

"Common function" is common project that contain wiki pages that I would like to share in many projects.

The page "+InverterSK" contain the macro

child_pages()

but it doesn't work "intra-projects"

Thanks for kind support

RE: child_pages question? - Added by Anonymous about 6 years ago

child_pages takes as argument a wiki page. If left empty it gives the hierarchy starting from the current page (where the macro has been placed). I did not get your problem in every detail, but maybe try to specify the desired starting page for the child_pages macro as argument.

just a guess.

RE: child_pages question? - Added by filippo mandelli about 6 years ago

Sorry for my bad explanation. I try to explain better.

I have a Configuration page:

"h1. Configuration
..Parameters of Machine configuration:
..
..child_pages
..

This create a tree view (TreeView.PNG), but few sub pages (+Inverter1 and +Inverter2) are “linked” to a pages that are in another project (“Common Function”)
The link work correctly but

When I show the “Configuration” page, tree view is not generated for pages “+Inverter1” and “+Inverter2”

Thanks

    (1-4/4)