What is a dynamic page?
A dynamic page is an element of a page manager used to write code and generate content.
A dynamic page allows for a certain level of coding through HTML, CSS, JavaScript, and PHP.
Note: A dynamic page can only render through a static page due to security reasons.
Enable Page Manager
Follow below steps if the page manger not enabled in admin panel
- Login Admin panel
- Application tab
- Enable the Page Manager component
How to create a page?
Follow below steps to create a page
- Log in to the admin panel.
- Go to Page Manager > Dynamic Page > Create Page.
- Enter the page name and click save.
- Write code
- Finally, click save to save the modification.
Render Content
Static pages can render dynamic pages in their place. Each time a new page is created, the system generates a unique code for it, like in the below example :
{{name=UI type=staticpage name=mypage autoformat=off}}
Go to the static page, click on the page code list button to see all the code, and then just copy a code inside the static page content to render it.
Sample Content
Below is the code to print the current system setting saved in the database.