diff --git a/include/top.php b/include/top.php
index 04262f5d7..6fcad4d93 100755
--- a/include/top.php
+++ b/include/top.php
@@ -27,7 +27,15 @@
$paths = App::getPaths();
$user = Auth::user();
-$pageTitle = !empty($pageTitle) ? $pageTitle : ($structure ? $structure->getTranslation('title') : tr('OpenSTAManager'));
+if (empty($pageTitle)) {
+ if ($structure->getTranslation('meta_title') && !empty($id_record)) {
+ $pageTitle = $structure->replacePlaceholders($id_record, $structure->getTranslation('meta_title'));
+ } elseif ($structure) {
+ $pageTitle = $structure->getTranslation('title');
+ } else {
+ $pageTitle = tr('OpenSTAManager');
+ }
+}
$lang = (empty($lang) || $lang == '|lang|') ? 'it_IT' : $lang;
@@ -37,7 +45,7 @@
- '.$pageTitle.' - '.tr('OpenSTAManager').'
+ '.$pageTitle.'
diff --git a/update/2_7.sql b/update/2_7.sql
index dae7de7cc..11da128d2 100644
--- a/update/2_7.sql
+++ b/update/2_7.sql
@@ -134,4 +134,7 @@ INSERT INTO `zz_settings` (`nome`, `valore`, `tipo`, `editable`, `sezione`, `ord
SELECT @id_record := `id` FROM `zz_settings` WHERE `nome` = "Conto predefinito per le spese d'incasso";
INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES
('1', @id_record, "Conto predefinito per le spese d'incasso", ''),
-('2', @id_record, 'Default account for collection costs', '');
\ No newline at end of file
+('2', @id_record, 'Default account for collection costs', '');
+
+-- Gestione meta title dei moduli
+ALTER TABLE `zz_modules_lang` ADD `meta_title` VARCHAR(255) NOT NULL AFTER `title`;
\ No newline at end of file