\MetaManagerExtension
Adds autoupdate of the metadatafields on pagesave.
A checkbox is added to the Main Content tab to select wether to update the MetaDescription and MetaKeyword fields on
save. Default is set to yes
You can adjust the amount of keywords, minimal word character and wich words to exclude in _config.php
- Author: Martijn van Nieuwenhoven
Synopsis
class MetaManagerExtension
extends SiteTreeExtension
{
- // members
- public static integer $keyword_amount = 15;
- public static integer $min_word_char = 4;
- public static string $exclude_words = '';
- public static bool $checkbox_state = 1;
- protected static integer $meta_desc_length = 255;
- public static bool $hide_extra_meta = 0;
- private static array $db = ;
- private static array $defaults = ;
- // methods
- public void updateCMSFields()
- public void onBeforeWrite()
- public string MetaTags()
Hierarchy
Extends
- SiteTreeExtension
Tasks
Line | Task |
---|---|
138+ | Move <title> tag in separate getter for easier customization and more obvious usage |
Members
private
- $db
- $defaults
protected
- $meta_desc_length — int
public
Methods
public
- MetaTags() — OVERLOAD MetaTags
- onBeforeWrite() — Update Metadata fields function
- updateCMSFields()