Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [1.1.0](https://github.com/pdir/contao-seo-plugin/tree/1.1.0) - 2025-03-21

- [Added] Specify the percentage of content created with artificial intelligence (AI)

## [1.0.3](https://github.com/pdir/contao-seo-plugin/tree/1.0.3) - 2024-11-09

- [Fixed] do not use global namespace in OutputFrontendTemplateListener
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ We help website owners and editorial teams to get more traffic from search engin
helps users to optimize their content and make it easy to find for both users and search engines. With the Contao SEO
plugin, you have the most important on-page factors directly in view.

### Current range of functions of version 1.0.0
### Current range of functions of version 1.1.0
- SEO analysis of 8 typical on-page problems
- IndexNow function for all known providers [indexnow.org](https://www.indexnow.org/faq)
- Possibility to activate a 404 error log
- Monitoring of alias changes (experimental, must be activated in user profile)
- Display existing URL redirects in the alias view
- Specify the percentage of content created with artificial intelligence (AI)

### An outlook on further functions
- At least 30 additional tests for on-page recommendations
Expand Down
30 changes: 30 additions & 0 deletions contao/dca/tl_content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use Contao\CoreBundle\DataContainer\PaletteManipulator;

PaletteManipulator::create()
// apply the field "custom_field" after the field "username"
->addField('pdirSeoAiUsage', 'text')
->addField('pdirSeoAiSource', 'text')

// now the field is registered in the PaletteManipulator
// but it still has to be registered in the globals array:
->applyToPalette('text', 'tl_content')
->applyToPalette('html', 'tl_content')
;

$GLOBALS['TL_DCA']['tl_content']['fields']['pdirSeoAiUsage'] = [
'filter' => true,
'inputType' => 'select',
'options' => ['100%', '75%', '50%', '25%', '0%'],
'eval' => ['chosen'=>true, 'tl_class'=>'w25'],
'sql' => ['type' => 'string', 'length' => 64, 'default' => '0%']
];

$GLOBALS['TL_DCA']['tl_content']['fields']['pdirSeoAiSource'] = [
'filter' => true,
'inputType' => 'select',
'options' => &$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiSources'],
'eval' => ['chosen'=>true, 'tl_class'=>'w25', 'includeBlankOption'=>true],
'sql' => ['type' => 'string', 'length' => 128, 'default' => '']
];
31 changes: 31 additions & 0 deletions contao/languages/de/tl_content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiUsage'] = ['KI Nutzung in %', 'Gib an mit welchen prozentualen Anteil der Inhalt mit künstlicher Intelligenz (KI) erstellt wurde.'];
$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiSource'] = ['KI Quelle', 'Gib hier die Quelle der künstlichen Intelligenz (KI) an.'];

$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiSources'] = [
'chatgpt' => [
'ChatGPT 4o',
'ChatGPT 4o mini',
'GPT-4',
'GPT-3.5',
'o1-mini',
'o1-preview',
'ChatGPT 4o with canvas',
],
'llm' => [
'meta-llama-3.1-8b-instruct'
],
'google' => [
'Gemini with 1.5 Flash',
'Gemini Advanced with 1.5 Pro'
],
'microsoft' => [
'Copilot'
],
'other' => [
'Perplexity AI Inc'
]
];
31 changes: 31 additions & 0 deletions contao/languages/en/tl_content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiUsage'] = ['AI usage in %', 'Specify the percentage of content created with artificial intelligence (AI)'];
$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiSource'] = ['AI Source', 'Specify the source of the artificial intelligence (AI) here'];

$GLOBALS['TL_LANG']['tl_content']['pdirSeoAiSources'] = [
'chatgpt' => [
'ChatGPT 4o',
'ChatGPT 4o mini',
'GPT-4',
'GPT-3.5',
'o1-mini',
'o1-preview',
'ChatGPT 4o with canvas',
],
'llm' => [
'meta-llama-3.1-8b-instruct'
],
'google' => [
'Gemini with 1.5 Flash',
'Gemini Advanced with 1.5 Pro'
],
'microsoft' => [
'Copilot'
],
'other' => [
'Perplexity AI Inc'
]
];