What do you like to accomplish. As I think fe_page template is the wrong place for that. Only change fe_page if it's necessary.
In every template you can check page credentials like so
PHP Code:
<?php
global $objPage;
echo $objPage->alias;
echo $objPage->(fieldname of table tl_page);
?>
What do you mean with "meta tags"?
You can try to modify the page TITLE tag by
PHP Code:
<?php
global $objPage;
$objPage->title = 'my title';
?>
You can use a template to put HTML code into the HEAD section.
PHP Code:
<?php
$GLOBALS['TL_HEAD'][] = '<meta name="property" content="value">';
// analyze $GLOBALS for other places like HEAD
?>
You can use such a template with a content element (CE) type HTML, a frontend (FE) module type HTML, a j_- or moo_-template (e.g. j_my-php-code) which you pick in page layout or by using the inserttag {{file::my-php-code.html5|php|inc|foo}}. This file has to be in folder templates/. Or use this code directly in your news template.
In templates you can output the template vars with
PHP Code:
<?php
$this->showTemplateVars();
?>
In news templates you can analyze the news with a NewsModel
PHP Code:
<?php
print_r(\NewsModel::findByPk($this->id)); // Pk = primary key
// or
$myNewsModel = \NewsModel::findByPk($this->id);
echo $myNewsModel->headline;
?>
Bookmarks