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

  1. Login Admin panel
  2. Application tab
  3. Enable the Page Manager component

How to create a page?

Follow below steps to create a page

  1. Log in to the admin panel.
  2. Go to Page Manager > Dynamic Page > Create Page.
  3. Enter the page name and click save.
  4. Write code
  5. 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.

<?php $List = App::Config()->siteInfo(); ?> <table class="table table-bordered"> <?php foreach($List as $key => $row):?> <tr> <td> <?php echo $key; ?></td><td><?php echo $row; ?></td></tr> <?php endforeach; ?> </table>


See more about pages