Issue: slug placeholder not working if there is no title field #830

This commit is contained in:
Elio Struyf
2024-07-03 14:35:25 +02:00
parent 5b3223abb6
commit 47e8caeede
17 changed files with 131 additions and 111 deletions

View File

@@ -0,0 +1,5 @@
import { DefaultFields, SETTING_SEO_DESCRIPTION_FIELD } from '../constants';
import { Settings } from '../helpers';
export const getDescriptionField = () =>
Settings.get<string>(SETTING_SEO_DESCRIPTION_FIELD) || DefaultFields.Description;

View File

@@ -0,0 +1,5 @@
import { DefaultFields, SETTING_SEO_TITLE_FIELD } from '../constants';
import { Settings } from '../helpers';
export const getTitleField = () =>
Settings.get<string>(SETTING_SEO_TITLE_FIELD) || DefaultFields.Title;

View File

@@ -5,8 +5,10 @@ export * from './existsAsync';
export * from './fetchWithTimeout';
export * from './fieldWhenClause';
export * from './flattenObjectKeys';
export * from './getDescriptionField';
export * from './getExtensibilityScripts';
export * from './getLocalizationFile';
export * from './getTitleField';
export * from './ignoreMsgCommand';
export * from './isWindows';
export * from './joinUrl';