-
Notifications
You must be signed in to change notification settings - Fork 12
Server Side Includes
It is very common in web development that you reuse a component on different pages, so that when you change something it is being updated everywhere. In Wappler you can create and re-use server side includes (ssi) on different pages across your site.
This could be any element from your page - for example your header with the navbar:
The first thing you need to do is to select the component:
Then click the move to include file button:
A confirmation dialog appears. Select Yes:
Enter the include file name(1), which in our case is 'header.php' and then click the save button(2):
The include file has been successfully saved, and then it has been included on your page:
You can see its settings in the properties panel:
You can open the include file for editing, by clicking the open file button:
When the include file is loaded in wappler, you can make changes as on any other page and also it renders nicely in design view:
In order to add your SSI files on other pages, first open the page you want to include it on and click the add component button, where you need to put the include:
Select Server Side Include:
Then click the browse button:
Select your include file and open it:
Then you can select what type of SSI it should be:
And you are done, your header SSI has been included on the page:
© Wappler 2018
- Home
- Getting Started
- How-to Guides
- Project Manager
- Bootstrap 4 Visual Designer
- Image Galleries & Animations
-
Server-side Components
- Connecting to a Database
- Creating Database Queries
- Binding Data on the Page
- Formatting Dynamic Data
- Filter Data with Text Input
- Filter Data with URL Param
- Dynamic Select Menu
- Dynamic Sortable Table
- Dynamic Paging
- Server Side Includes (SSI)
- Insert Database Record
- Get Inserted Record ID
- Delete Database Record
- JSON Data Sources
- Send Form to Email
- Debugging Problems
- Security & Login
- Form & Data Validation
- Notifications & Alerts
- Mobile Apps