Dynamic pages

:!: Note
Before you read this, please confirm that you understand the difference between files and web pages and what content is?

Special [pagecontent] tag (highlighted) Creating dynamic pages is done by creating a dynamic file out of any file of your website. We suggest that you use index.php as name of that file as Instant Update is pre-configured to use index.php as dynamic file. This is done from code editor by clicking on link “make dynamic page” which is located below the code editor and confirming it (click on “OK”), or simply by placing tag [pagecontent] where you content to appear. It is same as you are inserting regular content, your dynamic page contains same web design elements as other pages, but instead of [content]CONTENT_NAME[/content] tags, you are placing special tag named [pagecontent]default[/pagecontent], where “default” is name of content which will be served by default (first access to your dynamic web page). Dynamic page can include other contents, e.g. copyright (for footer), sidebar, etc…

By default, navigating with your browser to yourwebsite.com/index.php will display default content (specified between [pagecontent] tags). To show other content you need to specify HTTP GET parameter named “page” with a value which will hold name of content you want to display. For example, to show content named “about”, you would navigate your browser to yourwebsite.com/index.php?page=about, and for content named “contact” - yourwebsite.com/index.php?page=contact

:!: See also
Automatically generated navigation menus
 
usage/dynamic_pages.txt · Last modified: 2009/06/29 12:19 by avram
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki