SSI Files in SSI Files - Rendering of CSS in Wappler

I have just partitioned my index.php file to have an SSI file (ssi_activity.php) which now includes another SSI (ssi_event.php) file…

And while I can see the rendering of my CSS in the first level of SSI (ssi_activity.php) I cannot now see it in the second level (ssi_event.php).

Is there anything I can change to fix this?

Or if I change my design to be routed, so I turn ssi_activity.php into a routed page and then use an SSI to include ssi_event.php will that make the CSS render for ssi_event.php?

What is in the comment tag on top of the second SSI?

!-- Wappler include head-page="ssi_activities.php" appConnect="local" is="dmx-app" bootstrap4="sandstone" fontawesome_5="local" jquery_34="cdn" moment_2="cdn" -->

Should I change the head-page to index.php?

I've done that and it kinda works... the odd colour is a bit out but it is generally rendering correctly. Will it give me any problems?

Almost all my flows, variables and server connects are in index.php so I'm guessing it will access those now?

Changing to index.php is good, that is your main page where the css is included and where it should put any components includes. I don’t know exactly how Wappler will handle SSI in SSI, perhaps @George knows.

1 Like

Thanks @patrick!

@George will probably tell me to start using routing… :slight_smile:

But it all seems to be working so far.

Am wondering if I move to routing for the first level (ssi_activities.php) then whether all will be well then using SSI for the second level (ssi_event.php)…

… or if routing is designed to be multi-level too…