'content' => (!empty($contentData['content'])) ? StringUtil::trim($contentData['content']) : '',
'customURL' => (!empty($contentData['customURL'])) ? StringUtil::trim($contentData['customURL']) : '',
'metaDescription' => (!empty($contentData['metaDescription'])) ? StringUtil::trim($contentData['metaDescription']) : '',
- 'metaKeywords' => (!empty($contentData['metaKeywords'])) ? StringUtil::trim($contentData['metaKeywords']) : '',
'title' => (!empty($contentData['title'])) ? StringUtil::trim($contentData['title']) : ''
];
}
$statement = WCF::getDB()->prepareStatement($sql);
$sql = "INSERT IGNORE INTO wcf".WCF_N."_page_content
- (pageID, languageID, title, content, metaDescription, metaKeywords, customURL)
+ (pageID, languageID, title, content, metaDescription, customURL)
VALUES (?, ?, ?, ?, ?, ?, ?)";
$insertStatement = WCF::getDB()->prepareStatement($sql);
$content['title'],
$content['content'],
$content['metaDescription'],
- $content['metaKeywords'],
- $content['customURL']
+ $content['customURL'],
]);
// generate template if page's type is 'tpl'
->i18n()
->i18nRequired()
->languageItemPattern('__NONE__'),
-
- TextFormField::create('contentMetaKeywords')
- ->objectProperty('metaKeywords')
- ->label('wcf.acp.pip.page.contentMetaKeywords')
- ->i18n()
- ->i18nRequired()
- ->languageItemPattern('__NONE__'),
]);
// dependencies
);
}
- foreach (['contentContent', 'contentCustomURL', 'contentMetaDescription', 'contentMetaKeywords'] as $nonSystemElement) {
+ foreach (['contentContent', 'contentCustomURL', 'contentMetaDescription'] as $nonSystemElement) {
$form->getNodeById($nonSystemElement)->addDependency(
ValueFormFieldDependency::create('pageType')
->field($pageType)
'content' => [],
'customURL' => [],
'metaDescription' => [],
- 'metaKeywords' => []
];
/** @var \DOMElement $name */
}
$readData = function($languageID, \DOMElement $content) use (&$data, $saveData) {
- foreach (['title', 'content', 'customURL', 'metaDescription', 'metaKeywords'] as $contentElementName) {
+ foreach (['title', 'content', 'customURL', 'metaDescription'] as $contentElementName) {
$contentElement = $content->getElementsByTagName($contentElementName)->item(0);
if (!isset($data[$contentElementName])) {
$data[$contentElementName] = [];
$content = [];
- foreach (['title', 'content', 'customURL', 'metaDescription', 'metaKeywords'] as $contentProperty) {
+ foreach (['title', 'content', 'customURL', 'metaDescription'] as $contentProperty) {
if (!empty($data[$contentProperty])) {
foreach ($data[$contentProperty] as $languageID => $value) {
$languageCode = LanguageFactory::getInstance()->getLanguage($languageID)->languageCode;
}
foreach ($content as $languageCode => $values) {
- foreach (['title', 'content', 'customURL', 'metaDescription', 'metaKeywords'] as $contentProperty) {
+ foreach (['title', 'content', 'customURL', 'metaDescription'] as $contentProperty) {
if (!isset($values[$contentProperty])) {
$content[$languageCode][$contentProperty] = '';
}
foreach ($languages as $language) {
$content = null;
- foreach (['title', 'content', 'customURL', 'metaDescription', 'metaKeywords'] as $property) {
+ foreach (['title', 'content', 'customURL', 'metaDescription'] as $property) {
if (!empty($formData[$property . '_i18n'][$language->languageID])) {
if ($content === null) {
$content = $document->createElement('content');