Homepage of www.easymagazine.net | Wem site map of www.easymagazine.net | Email the author of www.easymagazine.net

 

Designing an page.php template page for Easy Magazine

The page script has been created thinking about stuff like "legal terms", "where we are" "Our mission"....
The publisher is free to write his text, the page list will be showed usually as a menu.

Homepage of a magazine published using Easy Magazine

Accessible data:

  • $this->page:
  • contains the page selected (Page)
  • $this->number:
  • contains last number published (Number)
  • $this->numbers:
  • array with the last 10 numbers published (array Number(s))
  • $this->categories:
  • array containing all categories of the magazine (array Category(s))
  • $this->pages:
  • array containing all pages published (array Page(s))
  • $this->metadescritpion:
  • string containing the metadescription of the page (String)
  • $this->metakeywords:
  • string containing the metadescription of the page (String)
  • $this->title:
  • string created to fill the title tag (String)

An example of code:

<h2><?= $this->page->getTitle() ?></h2>

<?= $this->page->getSummary() ?>
<?= $this->page->getBody() ?>

 


Copyright © 2009, 2010, 2011 Fabio Mattei, designed by zuudesign.sk