Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags für Importierte News #69

Closed
Sioweb opened this issue Oct 9, 2020 · 1 comment
Closed

Tags für Importierte News #69

Sioweb opened this issue Oct 9, 2020 · 1 comment

Comments

@Sioweb
Copy link
Contributor

Sioweb commented Oct 9, 2020

In tl_news.php sind wie es aussieht, einige Einträge verschwunden.

Extern geladene News besitzen kein Tag-Feld mehr. So habe ich die Daten bei mir wieder eingefügt:

if (!in_array('tl_news', $disabledObjects))
{
	$GLOBALS['TL_DCA']['tl_news']['config']['ondelete_callback'][] = array('tl_news_tags', 'deleteNews');
	$GLOBALS['TL_DCA']['tl_news']['config']['onload_callback'][] = array('tl_news_tags', 'onCopy');
	$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['default']);
	$GLOBALS['TL_DCA']['tl_news']['palettes']['internal'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['internal']);
	$GLOBALS['TL_DCA']['tl_news']['palettes']['external'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['external']);
}

https://github.com/hschottm/tags/blob/master/dca/tl_news.php#L68

@hschottm
Copy link
Owner

hschottm commented Oct 9, 2020

Fixed in 6ee7b73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants