Translations of this page?:
General
Getting Support
Administration
Design
Wolf Reference
Plugin Development
Core Development
- Design documents
- Working guidelines
- References
Press, Graphics and Translations
Wolf CMS books section
id()
The id() function returns the database ID of the current page. This code:
<?php echo $this->id(); ?>
will return a number, e.g. “1” for the root page (“Home page”) created at install time.
Note that for archive pages, (e.g., the %B %Y archive monthly archive page created during installation), the id() result will be the same no matter which month (in this example) is being displayed, since each one is the same “page”.
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
