Nested content pages?

Hello,

Is it possible to have content page inside another content page?
I have a page Group.php it is accessed via /group/:group where :group is a variable this works.

In that page i want to keep a sidebar and load a forum.php
I created the content page and looks ok in wappler.

But what should the path be? I am thinking /group/:group/forum

However NO matter what i put the ROUTES are not updated.

Hi @Kattouf !

What I would recommend is that instead of doing a sidebar via routing, you utilized the Server Side Include via the App Structure.

Edit: Here is the discussion regarding routing within routing. SPA with URL variables

1 Like

Yes i might do that. I think also i will use show/hide to achieve the same effect.

Updated with the link to the discussion on routing within routing.

Thanks i had read that page but lost it. My main issue was that no Routes were created ( in the Routes Section on the left) no matter what i entered. maybe a glitch

thnks

@Kattouf,

Perhaps I misunderstood you, you had posted the following so I was under the impression that routing was working.

But the following was not working:

If routing is not working at all, please post the errors that you are receiving so we can see if we can help.

I was unable to create a route for NESTED content pages.

Anyway moved on to try to make it using hidden sections now and Data Detail.

I’m come back if i try SPA again.
thanks

@Kattouf,

Are you following the documentation here, https://docs.wappler.io/t/creating-single-page-apps-spa/6583 ?

Yes Content pages work and routing works.
Just when i added/created a content page within a content page no routing was created.
So i had given but today i wanted to try again, can’t get nested routes to work. I mean no routes are created when i add a nested content page.


Nevermind, i think i can manage to do it with one level only.