Search found 1 match
- Fri Jun 16, 2017 11:37 pm
- Forum: 2.x.x support
- Topic: [SOLVED] How to get list of pages from database.js
- Replies: 2
- Views: 5993
Re: How to get list of pages from database.js
Hi mike, you are searching for something like this: <?php if (wCMS::$currentPage == 'home'): ?> <!-- On which page it will be displayed --> <div class="container marginTop20"> <?php foreach ( wCMS::db()->pages as $pageName => $page ): ?> <!-- loop though all pages --> <div class="col-...