This repository has been archived by the owner on Sep 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to exclude news archives from analysis
- Loading branch information
Showing
5 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* seo_serp_preview extension for Contao Open Source CMS | ||
* | ||
* Copyright (C) 2016 derhaeuptling | ||
* | ||
* @author derhaeuptling <https://derhaeuptling.com> | ||
* @author Codefog <http://codefog.pl> | ||
* @author Kamil Kuzminski <[email protected]> | ||
* @license LGPL | ||
*/ | ||
|
||
/** | ||
* Extend palettes | ||
*/ | ||
$GLOBALS['TL_DCA']['tl_news_archive']['palettes']['default'] .= ';{seo_serp_legend},seo_serp_ignore'; | ||
|
||
/** | ||
* Add fields | ||
*/ | ||
$GLOBALS['TL_DCA']['tl_news_archive']['fields']['seo_serp_ignore'] = [ | ||
'label' => &$GLOBALS['TL_LANG']['tl_news_archive']['seo_serp_ignore'], | ||
'exclude' => true, | ||
'inputType' => 'checkbox', | ||
'eval' => ['tl_class' => 'clr'], | ||
'sql' => "char(1) NOT NULL default ''", | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
/** | ||
* seo_serp_preview extension for Contao Open Source CMS | ||
* | ||
* Copyright (C) 2016 derhaeuptling | ||
* | ||
* @author derhaeuptling <https://derhaeuptling.com> | ||
* @author Codefog <http://codefog.pl> | ||
* @author Kamil Kuzminski <[email protected]> | ||
* @license LGPL | ||
*/ | ||
|
||
/** | ||
* Fields | ||
*/ | ||
$GLOBALS['TL_LANG']['tl_news_archive']['seo_serp_ignore'] = [ | ||
'Ignore this archive', | ||
'Ignore this archive during SEO SERP analysis.', | ||
]; | ||
|
||
/** | ||
* Legends | ||
*/ | ||
$GLOBALS['TL_LANG']['tl_news_archive']['seo_serp_legend'] = 'SEO SERP settings'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters